mediawiki-extensions-TextEx.../Gruntfile.js
Alex Monk 7683625d9e Split apihelp messages to a separate file
Bug: T189982
Change-Id: I719dd65bfe502094fa7b12d5d67d45f92d9daf5b
2019-08-25 00:00:59 +01:00

25 lines
558 B
JavaScript

/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};