mediawiki-extensions-Revisi.../Gruntfile.js
WMDE-Fisch f4fb473539 Add csslint for CSS codestyle checks
Rules taken from the Echo extension.

Change-Id: I72c89be42e7b09486780159f62f022399940a1b1
2016-05-19 13:10:57 +02:00

44 lines
819 B
JavaScript
Executable file

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