mediawiki-skins-Citizen/Gruntfile.js

36 lines
745 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-15 22:20:20 +00:00
cache: true,
fix: true,
force: 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' );
};