leverage --workspace
Massimo Melina committed
Aug 18, 2022 at 11:43 UTC
f5a00a45c2f08f814ed08e408fc41e111181079b
1 file changed
+6
-6
package.json
+6
-6
@@ -15,14 +15,14 @@
15
"watch-server-proxied": "cross-env FRONTEND_PROXY=3005 ADMIN_PROXY=3006 npm run watch-server",
16
"watch-shared": "cd shared && tsc --watch",
17
"watch-form": "cd mui-grid-form && tsc --watch",
18
- "start-frontend": "cd frontend && npm run start",
19
- "start-admin": "cd admin && npm run start",
18
+ "start-frontend": "npm run start --workspace=frontend",
19
+ "start-admin": "npm run start --workspace=admin",
20
"build-all": "npm audit --omit=dev && rm -rf dist && npm i && npm run build-shared && npm run build-server && npm run build-form && npm run build-frontend && npm run build-admin && echo COMPLETED",
21
"build-server": "rm -rf dist/src dist/plugins && tsc --target es2018 && cp -v -r package-lock.json server/package.json READ* LICENSE* plugins dist && cd dist && npm ci --omit=dev && npm i -f --omit=dev @node-rs/crc32-win32-x64-msvc && cd .. && node afterbuild",
22
- "build-frontend": "cd frontend && npm run build",
23
- "build-admin": "cd admin && npm run build",
24
- "build-shared": "cd shared && npm run build",
25
- "build-form": "cd mui-grid-form && npm run build",
22
+ "build-frontend": "npm run build --workspace=frontend",
23
+ "build-admin": "npm run build --workspace=admin",
24
+ "build-shared": "npm run build --workspace=shared",
25
+ "build-form": "npm run build --workspace=mui-grid-form",
26
"server-for-test": "cross-env HFS_CONFIG=tests node dist/src",
27
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
28
"dist-node": "cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-*",