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

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I9334feb3c736ccb5bfbc050232d379ca8ccb03f0
2020-01-09 01:22:14 -08:00

39 lines
716 B
JavaScript

/*!
* Grunt file
*
* @package CiteThisPage
*/
/* 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.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
},
banana: conf.MessagesDirs,
stylelint: {
all: [
'**/*.css',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};