mediawiki-extensions-Confir.../Gruntfile.js
Amir Aharoni a42d5d4adf Move apihelp messages to a separate file
This is one of the last extensions to be converted to having
the API messages in a separate file (at least out of the extensions
that are used be Wikimedia).

This one is a bit different from the others because it actually as several
extensions with separate i18n files, so it requires extra-careful review,
especially in Gruntfile and the extension.json files.

Bug: T189982
Change-Id: I66faae6fd4ff447327587c89ad2a1704edd1b356
2019-08-31 22:52:29 +03:00

40 lines
732 B
JavaScript

/* eslint-env node */
module.exports = function ( grunt ) {
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{,on}',
'!{vendor,node_modules}/**'
]
},
stylelint: {
all: [
'**/*.css',
'**/*.less',
'!node_modules/**',
'!vendor/**'
]
},
banana: {
all: [
'i18n/',
'i18n/api/',
'**/i18n/',
'**/i18n/api/'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};