mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
09c1174961
* 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
39 lines
711 B
JavaScript
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' );
|
|
};
|