mediawiki-extensions-Multim.../Gruntfile.js
Ed Sanders e7f53c4be8 build: Re-use MessageDirs in banana conf
Change-Id: If9651d9e1c394a294cc9808dbf1656883c1dfbc6
2017-01-23 13:51:12 +00:00

37 lines
732 B
JavaScript

/* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
},
eslint: {
all: [
'*.js',
'resources/mmv/**/*.js',
'tests/**/*.js'
]
},
stylelint: {
options: {
syntax: 'less'
},
src: 'resources/mmv/**/*.{css,less}'
}
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};