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

Additional changes:
* Enable eslint caching.

Change-Id: I1d9e08bf00e03b80913412b415f6d852b5537bda
2020-03-21 02:54:24 +00:00

26 lines
527 B
JavaScript

/* 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.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' );
};