mediawiki-skins-Gongbi/Gruntfile.js

33 行
647 B
JavaScript

'use strict';
module.exports = function ( grunt ) {
const conf = grunt.file.readJSON( 'skin.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true,
fix: grunt.option( 'fix' )
},
all: [ '.' ]
},
banana: conf.MessagesDirs,
stylelint: {
all: [
'**/*.css',
'**/*.less',
'!resources/libraries/**',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', [ 'test' ] );
};