mediawiki-extensions-Scribunto/Gruntfile.js
Umherirrender cc9cdab7e6 build: Run stylelint for less file
less is used since 527c461110

Change-Id: I982471e66eb40d797c529d17a2b8441996757f87
2024-10-05 00:07:44 +02:00

32 lines
643 B
JavaScript

'use strict';
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
const 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{,on}',
'!{vendor,node_modules}/**'
]
},
banana: conf.MessagesDirs,
stylelint: {
all: [
'**/*.{css,less}',
'!{vendor,node_modules}/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};