mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
eae0f237df
Minerva now provides default styling for these links. Also removing 'grunt-stylelint' package as there are no CSS/LESS files in this extension any more. Bug: T232102 Change-Id: I4e8b44d3159ab4a87103fa8471c7b1b145ac6016
40 lines
747 B
JavaScript
40 lines
747 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.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
reportUnusedDisableDirectives: true,
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{vendor,node_modules}/**'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs,
|
|
watch: {
|
|
files: [
|
|
'.eslintrc.json',
|
|
'<%= eslint.all %>'
|
|
],
|
|
tasks: 'test'
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|