mediawiki-extensions-OATHAuth/Gruntfile.js
Umherirrender e8e4429a22 build: Run stylelint for less file
Follow-Up: I558fa2aaed90afee8488f8b68c71959e3c75331d
Change-Id: I3a53a5cad92bb74a2a92385e40c939d4682315c0
2024-05-18 19:47:53 +00:00

28 lines
575 B
JavaScript

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