mediawiki-extensions-Thanks/Gruntfile.js
Rafid Aslam b7cd517fb6 Move all apihelp translatable messages to separate files
Should be merged along with
Ie566f9b0b6ba267470c01f17c3f4ea74482e2d2d

Bug: T189982
Change-Id: Id3d44fe0e7884276f7c81253f6b765984f5c9945
2018-11-21 07:00:55 +07:00

43 lines
762 B
JavaScript

/*!
* Grunt file
*
* @package Thanks
*/
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
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: conf.MessagesDirs,
watch: {
files: [
'.eslintrc.json',
'<%= eslint.all %>'
],
tasks: 'test'
},
jsonlint: {
all: [
'*.json',
'i18n/*.json'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};