mediawiki-extensions-Nuke/Gruntfile.js
Umherirrender bfea4d093b build: Add stylelint for less file
Follow-Up: I76b9bbb939afde1d7d951925818fd15f40022ead
Change-Id: I6e08d26bce3c6903002dabf9f117ea7ff2f69383
2024-05-18 22:10:50 +02:00

32 lines
636 B
JavaScript

/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
},
stylelint: {
all: [
'**/*.{css,less}',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};