mediawiki-skins-Citizen/Gruntfile.js

34 lines
711 B
JavaScript
Raw Normal View History

2019-12-26 07:08:10 +00:00
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'skin.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
2020-02-16 00:13:03 +00:00
fix: true
2019-12-26 07:08:10 +00:00
},
2020-02-15 22:08:12 +00:00
all: [
'**/*.js{,on}',
'!{vendor,node_modules,docs}/**'
]
2019-12-26 07:08:10 +00:00
},
stylelint: {
all: [
'**/*.{css,less}',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};