mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
a42d5d4adf
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
40 lines
732 B
JavaScript
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' );
|
|
};
|