| Current File : /home/jvzmxxx/wiki/extensions/Wikibase/Gruntfile.js |
/* jshint node: true, strict: false */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
jshint: {
options: {
jshintrc: true
},
all: '.'
},
jscs: {
all: '.'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
},
banana: {
options: {
disallowDuplicateTranslations: false,
disallowUnusedTranslations: false
},
all: [
'client/i18n/',
'lib/i18n/',
'repo/i18n/'
]
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
};