mediawiki-extensions-Linter/Gruntfile.js
Umherirrender 50e5b93f1e build: Add stylelint to validate less file
less file added in 1094dbfbff

Change-Id: I151367d1db71e1515e9639d35f95373ed986ab70
2024-11-20 22:59:10 +01:00

36 lines
683 B
JavaScript

/* 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-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.{js,json}',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs,
stylelint: {
options: {
cache: true
},
all: [
'**/*.{css,less}',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};