mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-16 03:22:21 +00:00
e315e954a6
Removing csslint rather than replacing it with stylelint as there are no CSS or LESS files in this repo. Also bumping banana and jsonlint to latest. Change-Id: I9ffce273f63b061e07c3fa90ab4e82b5e551aa92
44 lines
713 B
JavaScript
44 lines
713 B
JavaScript
/*!
|
|
* Grunt file
|
|
*
|
|
* @package Thanks
|
|
*/
|
|
|
|
/* eslint-env node, es6 */
|
|
module.exports = function ( grunt ) {
|
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
all: [
|
|
'*.js',
|
|
'modules/**/*.js',
|
|
'tests/qunit/**/*.js'
|
|
]
|
|
},
|
|
banana: {
|
|
all: 'i18n/'
|
|
},
|
|
watch: {
|
|
files: [
|
|
'.eslintrc.json',
|
|
'<%= eslint.all %>'
|
|
],
|
|
tasks: 'test'
|
|
},
|
|
jsonlint: {
|
|
all: [
|
|
'*.json',
|
|
'i18n/*.json'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|