mediawiki-skins-Citizen/Gruntfile.js

33 lines
685 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' ],
2019-12-26 07:56:53 +00:00
cache: true,
2019-12-26 08:04:22 +00:00
fix: true,
force: true
2019-12-26 07:08:10 +00:00
},
all: '.'
},
stylelint: {
all: [
'**/*.{css,less}',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};