mediawiki-extensions-Parser.../Gruntfile.js
Antoine Musso ec53ace689 build: add grunt-contrib-jshint
See T119973

Change-Id: I84bd7ef2365e2f2b18935af5aecba2055de7ffc6
2017-04-21 18:24:03 +02:00

34 lines
633 B
JavaScript

/*!
* Grunt file
*
* @package ParserFunctions
*/
/*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/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
grunt.registerTask( 'default', 'test' );
};