dx: npm run watch-server-full
Massimo Melina committed
Dec 13, 2025 at 23:43 UTC
ddf63c607dc5781b442abdcf87206317d550cf07
2 files changed
+3
-4
dev.md
+1
-3
@@ -18,9 +18,7 @@ You could instead run `npm run dist` to run both *build-all* & *dist-bin*.
18
# Dev environment
19
20
0. `npm install`
21
-1. `npm run watch-server-proxied` and leave it running. It will serve server stuff plus will proxy frontend and admin files.
22
-2. `npm run start-frontend` and leave it running. It will serve on port 3005.
23
-3. `npm run start-admin` and leave it running. It will serve on port 3006
21
+1. `npm run watch-server-full` and leave it running. It will serve server stuff plus will proxy frontend and admin files.
22
23
If you don't want this proxying version, you can use `npm run watch-server` but after both frontend and admin have
24
been built, so their files are available in `dist` folder.
package.json
+2
-1
@@ -10,6 +10,7 @@
10
"scripts": {
11
"watch-server": "cross-env DEV=1 nodemon --ignore tests/ --watch src -e ts,tsx --exec tsx src",
12
"watch-server-proxied": "cross-env FRONTEND_PROXY=3005 ADMIN_PROXY=3006 npm run watch-server",
13
+ "watch-server-full": "npm run start --workspace=frontend & npm run start --workspace=admin & cross-env FRONTEND_PROXY=3005 ADMIN_PROXY=3006 npm run watch-server",
14
"start-frontend": "npm run start --workspace=frontend",
15
"start-admin": "npm run start --workspace=admin",
16
"build-all": "npm audit --omit=dev --audit-level=moderate && rm -rf dist && npm i && npm run build-server && npm run test-with-server && (npm run build-frontend & npm run build-admin) && echo COMPLETED",
@@ -23,7 +24,7 @@
24
"test-ui": "npx playwright test frontend && npx playwright test serial",
25
"test-with-ui": "npx playwright test --ui",
26
"pub": "cd dist && npm publish",
26
- "dist": "(git diff-index --quiet HEAD -- || git stash push -m 'dist') && (CI=1 npm run dist-uncommitted || (EXIT_CODE=$? && git stash pop || true && exit $EXIT_CODE)); git stash pop || true",
27
+ "dist": "(git diff-index --quiet HEAD -- || git stash push -m 'dist') && (CI=1 FORCE_COLOR=1 npm run dist-uncommitted || (EXIT_CODE=$? && git stash pop || true && exit $EXIT_CODE)); git stash pop || true",
28
"dist-uncommitted": "npm run build-all && npm run test-ui && npm run dist-bin",
29
"dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-mac && npm run dist-bin-mac-arm",
30
"dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && cd .. && node prune_modules",