mediawiki-extensions-AbuseF.../Gruntfile.js
Umherirrender 3e8c0d7813 build: Run stylelint for less file
Since 7db0e05a a less file exists

Change-Id: Ia0248b1243842c6220e998bef17e2aeaf5f34e92
2023-11-28 20:06:41 +01:00

31 lines
607 B
JavaScript

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