mediawiki-extensions-Cite/Gruntfile.js
Umherirrender 085f28a969 Run stylelint also for less file
File was added with I6f9b85cd6cfdb055692b1f537d569c158900f7c9

Change-Id: I0ec5400422c5f8dc9f38c64dc3051a512fe20afe
2017-07-18 19:44:31 +00:00

45 lines
822 B
JavaScript

/*!
* Grunt file
*
* @package Cite
*/
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
all: [
'**/*.js',
'{.jsduck,build}/**/*.js',
'modules/**/*.js',
'!node_modules/**'
]
},
banana: conf.MessagesDirs,
stylelint: {
all: [
'**/*.css',
'**/*.less',
'!node_modules/**'
]
},
jsonlint: {
all: [
'**/*.json',
'.stylelintrc',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};