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:
acald 2021-08-02 12:40:27 -05:00 committed by Jdlrobson
parent 6d03335fb9
commit d9dccf23fd
6 changed files with 970 additions and 3100 deletions

3
.eslintignore Normal file
View file

@ -0,0 +1,3 @@
/node_modules/
/resources/ext.relatedArticles.lib/
/vendor/

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
12.21.0

2
.stylelintignore Normal file
View file

@ -0,0 +1,2 @@
/node_modules/
/vendor/

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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"