* Replace `substr`/`substring` with `slice`. The second argument to `substring` is length, not end index as in `substr`/`slice`, so convert where necessary. * Replace `new Date().getTime()` with `Date.now()` * Documentation fixes * Replace `throw Error` with `throw new Error` Change-Id: I532500ea4c99d8ebec01efb21273c8df21626e59
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"api-testing": "mocha --timeout 0 --recursive tests/api-testing",
|
|
"minify-svg": "svgo --config=.svgo.config.js -q -r -f resources/src",
|
|
"lint": "grunt lint",
|
|
"test": "grunt lint && npm run doc",
|
|
"qunit": "grunt qunit",
|
|
"doc": "jsduck",
|
|
"postdoc": "grunt copy:jsduck",
|
|
"selenium-daily": "MW_SCRIPT_PATH=/w npm run selenium-test -- --suite daily --mochaOpts.grep @daily",
|
|
"selenium-test": "wdio ./tests/selenium/wdio.conf.js"
|
|
},
|
|
"devDependencies": {
|
|
"@wdio/cli": "7.4.6",
|
|
"@wdio/dot-reporter": "7.4.2",
|
|
"@wdio/junit-reporter": "7.4.2",
|
|
"@wdio/local-runner": "7.4.6",
|
|
"@wdio/mocha-framework": "7.13.2",
|
|
"@wdio/sync": "7.4.6",
|
|
"api-testing": "1.3.0",
|
|
"dotenv": "8.2.0",
|
|
"eslint-config-wikimedia": "0.21.0",
|
|
"grunt": "1.4.1",
|
|
"grunt-banana-checker": "0.9.0",
|
|
"grunt-contrib-copy": "1.0.0",
|
|
"grunt-contrib-watch": "1.1.0",
|
|
"grunt-eslint": "23.0.0",
|
|
"grunt-karma": "4.0.0",
|
|
"grunt-stylelint": "0.16.0",
|
|
"karma": "6.3.2",
|
|
"karma-chrome-launcher": "3.1.0",
|
|
"karma-firefox-launcher": "1.3.0",
|
|
"karma-mocha-reporter": "2.2.5",
|
|
"karma-qunit": "4.1.0",
|
|
"postcss-less": "2.0.0",
|
|
"qunit": "2.16.0",
|
|
"stylelint-config-wikimedia": "0.11.1",
|
|
"svgo": "2.3.1",
|
|
"wdio-mediawiki": "file:tests/selenium/wdio-mediawiki",
|
|
"webdriverio": "7.4.6"
|
|
},
|
|
"dependencies": {}
|
|
}
|