mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
fe0a05ad49
Change-Id: I626e607e6ae7efc2521f9dd1da83c6fd90b0767d
33 lines
695 B
JavaScript
33 lines
695 B
JavaScript
/* eslint-env node, es6 */
|
|
|
|
module.exports = function ( grunt ) {
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
reportUnusedDisableDirectives: true,
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'*.{js,json}',
|
|
'modules/**/*.{js,json}'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'*.{css,less}',
|
|
'modules/**/*.{css,less}'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|