mediawiki-extensions-SpamBl.../Gruntfile.js
Umherirrender 0bb4cbc792 build: Always exclude vendor
Change-Id: Ia5d61836e3fd1c4813c5510164b3dc13009c2556
2017-11-11 17:05:47 +00:00

35 lines
649 B
JavaScript

/*!
* Grunt file
*
* @package SpamBlacklist
*/
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
var conf = grunt.file.readJSON( 'extension.json' );
grunt.initConfig( {
banana: conf.MessagesDirs,
jshint: {
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
grunt.registerTask( 'default', 'test' );
};