Skip to content

Commit e9505a8

Browse files
committed
run scripts in parallel
1 parent 16f6f07 commit e9505a8

File tree

5 files changed

+1127
-2934
lines changed

5 files changed

+1127
-2934
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ jobs:
6060
run: pnpm build
6161

6262
- name: Start
63-
run: pnpm start:all
63+
run: pnpm start-all

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
],
1818
"scripts": {
1919
"build": "tsup",
20-
"check-all": "pnpm format:check && pnpm type-check && pnpm build && pnpm start:all",
20+
"check-all": "npm-run-all --aggregate-output --print-label --parallel format:check type-check start:**",
2121
"format": "prettier --write .",
2222
"format:check": "prettier --check .",
2323
"release": "auto shipit",
24-
"prestart": "pnpm build",
2524
"start": "node ./dist/bin.js",
26-
"start:all": "pnpm start:default && pnpm start:mini && pnpm start:maxi && pnpm start:svelte5 && pnpm start:dry",
25+
"start-all": "npm-run-all --aggregate-output --print-label build --parallel start:**",
2726
"start:default": "pnpm start --name=default --template=default --types=checkjs --no-prettier --no-eslint --no-playwright --no-vitest --no-svelte5",
2827
"start:dry": "pnpm start:default --dry",
2928
"start:maxi": "pnpm start --name=maxi --template=default --types=typescript --prettier --eslint --playwright --vitest --no-svelte5",
@@ -42,6 +41,7 @@
4241
"@types/node": "^18.18.12",
4342
"@types/yargs": "^17.0.32",
4443
"auto": "^11.0.4",
44+
"npm-run-all": "^4.1.5",
4545
"prettier": "^3.1.0",
4646
"tsup": "^8.0.1",
4747
"typescript": "^5.3.2"

0 commit comments

Comments
 (0)