diff options
Diffstat (limited to 'www/wiki/skins/MonoBook/Gruntfile.js')
-rw-r--r-- | www/wiki/skins/MonoBook/Gruntfile.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/wiki/skins/MonoBook/Gruntfile.js b/www/wiki/skins/MonoBook/Gruntfile.js new file mode 100644 index 00000000..9aa9be57 --- /dev/null +++ b/www/wiki/skins/MonoBook/Gruntfile.js @@ -0,0 +1,41 @@ +/* eslint-env node */ +module.exports = function ( grunt ) { + var conf = grunt.file.readJSON( 'skin.json' ); + grunt.loadNpmTasks( 'grunt-banana-checker' ); + grunt.loadNpmTasks( 'grunt-eslint' ); + grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-stylelint' ); + grunt.initConfig( { + eslint: { + all: [ + '*.js', + '**/*.js', + '!node_modules/**', + '!vendor/**' + ] + }, + jsonlint: { + all: [ + '*.json', + '**/*.json', + '!node_modules/**', + '!vendor/**' + ] + }, + banana: conf.MessagesDirs, + stylelint: { + options: { + syntax: 'less' + }, + all: [ + '*.{le,c}ss', + '**/*.{le,c}ss', + '!node_modules/**', + '!vendor/**' + ] + } + } ); + + grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana', 'stylelint' ] ); + grunt.registerTask( 'default', 'test' ); +}; |