mediawiki-extensions-Confir.../Gruntfile.js
Paladox 6e73d3879e Recurse into the sub folders with grunt jshint
Currently grunt wont look into sub folder so add support for that.

Change-Id: I8ce2e3ee693d96a4db4f3bd35ab4211e82993d71
2015-10-28 18:55:03 +00:00

32 lines
553 B
JavaScript

/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
jshint: {
all: [
'**/*.js',
'!node_modules/**'
]
},
banana: {
all: [
'i18n/',
'**/i18n/'
]
},
jsonlint: {
all: [
'*.json',
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};