mediawiki-extensions-Catego.../Gruntfile.js
Amir Aharoni 5723ae91d1 Split apihelp messages to a separate file
Bug: T189982
Change-Id: I915b0d5b0dc4232d8999c5fcf246274537503121
2019-05-11 11:05:07 +03:00

40 lines
752 B
JavaScript

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