mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
9efe8b1dd4
Depends-On: I6c3d186de1877f73d4a4e3fec7d6d632a5d5fa83 Change-Id: Icdb44f793a8f5e56666ec635bb8b0125041b5aab
35 lines
746 B
JavaScript
35 lines
746 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}',
|
|
'tests/**/*.{js,json}',
|
|
'!modules/lib/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'*.{css,less}',
|
|
'modules/**/*.{css,less}'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|