mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-27 08:30:07 +00:00
build: Use conf.MessageDirs for banana path config
Rather than configuring manually, re-use the specification in the repo's extension.json file, like we do elsewhere; this way, if we add further i18n files in future, or change their paths, we won't need to update this configuration. Change-Id: I3975959c680a0ba789fe65b80506d3c0ed8a9724
This commit is contained in:
parent
cb4dd6d7a3
commit
fbd1c68323
|
@ -1,5 +1,7 @@
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
module.exports = function ( grunt ) {
|
module.exports = function ( grunt ) {
|
||||||
|
var conf = grunt.file.readJSON( 'extension.json' );
|
||||||
|
|
||||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||||
|
@ -14,9 +16,7 @@ module.exports = function ( grunt ) {
|
||||||
'!{lib,vendor,node_modules}/**'
|
'!{lib,vendor,node_modules}/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
banana: {
|
banana: conf.MessagesDirs,
|
||||||
all: 'i18n/'
|
|
||||||
},
|
|
||||||
stylelint: {
|
stylelint: {
|
||||||
all: [
|
all: [
|
||||||
'**/*.{css,less}',
|
'**/*.{css,less}',
|
||||||
|
|
Loading…
Reference in a new issue