mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-24 23:45:54 +00:00
8749611dc6
* 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
39 lines
716 B
JavaScript
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' );
|
|
};
|