mediawiki-extensions-Syntax.../Gruntfile.js
Ed Sanders ddd1c496a0 build: Update grunt-banana-checker from 0.2.0 to 0.3.0 and make pass
Cleanup old messages

Change-Id: I413ccacabf9144025a4d7e6704c32428fd7c8045
2015-09-18 16:02:41 +00:00

61 lines
1.1 KiB
JavaScript

/*!
* Grunt file
*
* @package SyntaxHighlight_GeSHi
*/
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-csslint' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
jshint: {
options: {
jshintrc: true
},
all: [
'*.js',
'modules/**/*.js'
]
},
jsonlint: {
all: [
'*.json',
'i18n/*.json',
'modules/**/*.json'
]
},
jscs: {
src: '<%= jshint.all %>'
},
csslint: {
options: {
csslintrc: '.csslintrc'
},
all: 'modules/**/*.css'
},
banana: {
options: {
disallowDuplicateTranslations: false
},
all: 'i18n/'
},
watch: {
files: [
'.{csslintrc,jscsrc,jshintignore,jshintrc}',
'<%= jshint.all %>',
'<%= csslint.all %>'
],
tasks: 'test'
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'jscs', 'csslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};