mediawiki-extensions-Confir.../Gruntfile.js
Paladox 325f21e117 Add grunt-jscs package
This will allow us to run jscs in npm.

Change-Id: Ica970dfd2459bbdf50abc55ecdb24fe47307ccaa
2015-11-26 23:34:47 +00:00

36 lines
641 B
JavaScript

/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.initConfig( {
jshint: {
all: [
'**/*.js',
'!node_modules/**'
]
},
jscs: {
src: '<%= jshint.all %>'
},
banana: {
all: [
'i18n/',
'**/i18n/'
]
},
jsonlint: {
all: [
'*.json',
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};