mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
[build] Fold NPM build script into test
The NPM `build` script was being used to call `test`. The confusion was likely due `build` calling the TypeScript compiler which in this case isn't building anything. It's only used for tests. Since a proper `build` script will be added in T257647. Move the tests in `build` to `test` and drop `build`. Bug: T257647 Change-Id: I7f2c983915f6b1eaa0aa88eb8dd4b32d9c954b78
This commit is contained in:
parent
d24d858264
commit
d752997e4f
|
@ -2,8 +2,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006 -s docs/ui",
|
"start": "dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006 -s docs/ui",
|
||||||
"build": "npm -s test && npm -s run doc",
|
"test": "npm -s run lint && tsc && npm -s run doc",
|
||||||
"test": "npm -s run lint && tsc",
|
|
||||||
"test:size": "node ./tests/resource-loader-bundlesize.js",
|
"test:size": "node ./tests/resource-loader-bundlesize.js",
|
||||||
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
|
"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:js": "npm -s run lint:js -- --fix",
|
||||||
|
|
Loading…
Reference in a new issue