mediawiki-extensions-CodeEd.../Gruntfile.js
Kunal Mehta c71fb0bdda build: Configuring banana-checker and jsonlint
Change-Id: I8b11109e8df32b61f017847a81ea34625592f475
2015-06-15 14:54:28 -07:00

26 lines
483 B
JavaScript

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