mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-13 18:07:00 +00:00
4307f1ec19
Add support for composer phplint and npm jshint, jsonlint and banana-checker. Change-Id: If509fdb96f35cdd252b6c53ece8a568b4a614926
31 lines
526 B
JavaScript
31 lines
526 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'
|
|
]
|
|
},
|
|
banana: {
|
|
all: [
|
|
'i18n/',
|
|
'**/i18n/'
|
|
]
|
|
},
|
|
jsonlint: {
|
|
all: [
|
|
'*.json',
|
|
'**/*.json',
|
|
'!node_modules/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|