mediawiki-extensions-Thanks/Gruntfile.js
Ed Sanders cf9aeb5689 build: Update eslint-config-wikimedia to 0.16.2
Change-Id: If00a92d0ff96cee4df4d5468a862e3ae2a90b911
2020-07-09 16:35:57 +01:00

39 lines
704 B
JavaScript

/*!
* Grunt file
*
* @package Thanks
*/
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.initConfig( {
eslint: {
options: {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'**/*.{js,json}',
'!{vendor,node_modules}/**'
]
},
banana: conf.MessagesDirs,
watch: {
files: [
'.eslintrc.json',
'<%= eslint.all %>'
],
tasks: 'test'
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};