mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-09-23 10:25:09 +00:00
RelatedArticles uses Grunt. This package is unecessary and inconsistent with other repositories.
Uninstalled the following packages: grunt, grunt-eslint, grunt-stylelint Removed Gruntfile.js since Gruntfile is not longer necessary Bug: T286832 Change-Id: I4fe5ee2db080f1a2be9607f302704c8c3bf5a233
This commit is contained in:
parent
6d03335fb9
commit
d9dccf23fd
3
.eslintignore
Normal file
3
.eslintignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
/node_modules/
|
||||
/resources/ext.relatedArticles.lib/
|
||||
/vendor/
|
2
.stylelintignore
Normal file
2
.stylelintignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
/node_modules/
|
||||
/vendor/
|
34
Gruntfile.js
34
Gruntfile.js
|
@ -1,34 +0,0 @@
|
|||
/* eslint-env node, es6 */
|
||||
module.exports = function ( grunt ) {
|
||||
var conf = grunt.file.readJSON( 'extension.json' );
|
||||
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
|
||||
grunt.initConfig( {
|
||||
eslint: {
|
||||
options: {
|
||||
cache: true,
|
||||
fix: grunt.option( 'fix' )
|
||||
},
|
||||
all: [
|
||||
'**/*.js',
|
||||
'!node_modules/**',
|
||||
'!resources/ext.relatedArticles.lib/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
},
|
||||
banana: conf.MessagesDirs,
|
||||
stylelint: {
|
||||
all: [
|
||||
'**/*.less',
|
||||
'!node_modules/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
}
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
|
||||
grunt.registerTask( 'default', 'test' );
|
||||
};
|
4019
package-lock.json
generated
4019
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -3,7 +3,13 @@
|
|||
"scripts": {
|
||||
"selenium-daily": "npm run selenium-test -- --mochaOpts.grep @daily",
|
||||
"selenium-test": "wdio tests/selenium/wdio.conf.js",
|
||||
"test": "grunt test"
|
||||
"test": "npm -s run lint",
|
||||
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
|
||||
"lint:fix:js": "npm -s run lint:js -- --fix",
|
||||
"lint:fix:styles": "npm -s run lint:styles -- --fix",
|
||||
"lint:js": "eslint --cache .",
|
||||
"lint:styles": "stylelint \"**/*.{less,css}\"",
|
||||
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wdio/cli": "7.4.6",
|
||||
|
@ -13,10 +19,7 @@
|
|||
"@wdio/mocha-framework": "7.4.6",
|
||||
"@wdio/sync": "7.4.6",
|
||||
"eslint-config-wikimedia": "0.20.0",
|
||||
"grunt": "1.4.0",
|
||||
"grunt-banana-checker": "0.9.0",
|
||||
"grunt-eslint": "23.0.0",
|
||||
"grunt-stylelint": "0.16.0",
|
||||
"stylelint-config-wikimedia": "0.10.3",
|
||||
"wdio-mediawiki": "1.1.1",
|
||||
"webdriverio": "7.4.6"
|
||||
|
|
Loading…
Reference in a new issue