mediawiki-extensions-Cookie.../Gruntfile.js
libraryupgrader c3928a448c build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 18.0.0 → 19.1.0

npm:
* grunt: 1.0.1 → 1.3.0
  * https://npmjs.com/advisories/577 (CVE-2018-3721)
  * https://npmjs.com/advisories/745
  * https://npmjs.com/advisories/782 (CVE-2018-16487)
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
  * https://npmjs.com/advisories/1065 (CVE-2019-10744)
  * https://npmjs.com/advisories/1523 (CVE-2019-10744)

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".
* Committed package-lock.json (T179229) too.
* And updating CoC link to use Special:MyLanguage (T202047).
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Also sorted "composer fix" command to run phpcbf last.
* Set `root: true` in .eslintrc.json (T206485).
* Enable eslint caching.

Change-Id: I36e83261888dd6254f7dbd3495ab1383458b6dfa
Depends-On: I1c5783aae290af5fdcb39f44ac1e832fa5edb6db
2021-01-05 18:55:55 +00:00

47 lines
885 B
JavaScript

/*!
* Grunt file
*
* @package CookieWarning
*/
/* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-contrib-csslint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
},
eslint: {
options: {
cache: true
},
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
csslint: {
options: {
csslintrc: '.csslintrc'
},
all: 'resources/**/*.css'
}
} );
grunt.registerTask( 'lint', [ 'eslint', 'csslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'lint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};