mediawiki-extensions-RSS/Gruntfile.js
libraryupgrader 0755b6c2a0 build: Updating mkdirp to 0.5.3
* https://npmjs.com/advisories/1179

Additional changes:
* Enable eslint caching.

Change-Id: Ic23a9abb7647616eecdfe0c22fa39b7f0979cac5
2020-03-21 05:53:53 +00:00

26 lines
522 B
JavaScript

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