mediawiki-extensions-Confir.../Gruntfile.js
Umherirrender cc8166e64a build: Run stylelint also for less files
Less file was added with I1f15cd9ac4b78d7f6e24b93af0fcfb809f00e563

Change-Id: I72c1aab5c6949e2c9e2e7a28a2435a25c0bde1a3
2019-01-18 18:13:17 +01:00

43 lines
745 B
JavaScript

/* eslint-env node */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
stylelint: {
all: [
'**/*.css',
'**/*.less',
'!node_modules/**',
'!vendor/**'
]
},
banana: {
all: [
'i18n/',
'**/i18n/'
]
},
jsonlint: {
all: [
'*.json',
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};