mediawiki-extensions-Catego.../Gruntfile.js
libraryupgrader 09c1174961 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.6.0 → 0.8.0
* eslint-config-wikimedia: 0.12.0 → 0.15.0
* grunt-stylelint: 0.11.1 → 0.13.0
* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: Ic8958ed0fffdad06f1112cb4529589c7db27a321
2020-01-09 01:24:10 -08:00

39 lines
711 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: {
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' );
};