mediawiki-extensions-Nuke/Gruntfile.js
Siebrand Mazeland afb4e332a9 Add tests
* Fix all issues so tests pass.
* Rework deprecated functions. Compatibility is now with
  MediaWiki 1.23 or later.

Change-Id: I08a0be7df48f9a39951cdc4edd4091fd4b89eade
2015-10-03 16:41:51 +01:00

29 lines
573 B
JavaScript

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