mediawiki-extensions-Echo/Gruntfile.js
Paladox 7e0a51b37f build: Remove grunt-contrib-csslint
This is no longer needed and useless since we switched all css files to
less.

Change-Id: I6c0ea55c236be94f3b612de2470585616d831dd8
2016-01-18 19:51:04 -08:00

51 lines
960 B
JavaScript

/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.initConfig( {
jshint: {
options: {
jshintrc: true,
ignores: [
'tests/externals/**'
]
},
all: [
'**/*.js',
'!node_modules/**'
]
},
jscs: {
src: [
'<%= jshint.all %>',
'!tests/externals/**'
]
},
banana: {
all: 'i18n/'
},
watch: {
files: [
'.{csslintrc,jscsrc,jshintignore,jshintrc}',
'<%= jshint.all %>',
'<%= csslint.all %>'
],
tasks: 'test'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', 'lint' );
grunt.registerTask( 'default', 'test' );
};