mediawiki-extensions-Confir.../Gruntfile.js
Paladox 4307f1ec19 Add some Jenkins tests
Add support for composer phplint and npm jshint, jsonlint
and banana-checker.

Change-Id: If509fdb96f35cdd252b6c53ece8a568b4a614926
2015-10-14 11:52:19 +01:00

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