mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-28 01:50:18 +00:00
6e73d3879e
Currently grunt wont look into sub folder so add support for that. Change-Id: I8ce2e3ee693d96a4db4f3bd35ab4211e82993d71
32 lines
553 B
JavaScript
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' );
|
|
};
|