mediawiki-extensions-Replac.../Gruntfile.js
Umherirrender 6c3100ce67 build: Always exclude vendor and node_modules
Change-Id: I528cddc1630222ceb5710352ff07cf28f54bec6d
2017-11-11 11:37:10 +01:00

31 lines
562 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/**',
'!vendor/**'
]
},
banana: {
all: 'i18n/'
},
jsonlint: {
all: [
'*.json',
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};