Browse Source

Try to improve server watch script

Chocobozzz 2 weeks ago
parent
commit
df0fd9043c
No account linked to committer's email address
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      scripts/watch/server.sh

+ 5
- 2
scripts/watch/server.sh View File

@@ -12,6 +12,9 @@ rm -rf "./dist"
12 12
 mkdir "./dist"
13 13
 cp "./tsconfig.json" "./dist"
14 14
 
15
+npm run tsc -- --incremental --sourceMap
16
+cp -r ./server/static ./server/assets ./dist/server
17
+
15 18
 NODE_ENV=test npm run concurrently -- -k \
16
-  "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
17
-  "npm run tsc -- --sourceMap --preserveWatchOutput -w"
19
+  "npm run nodemon -- --delay 1 --watch ./dist dist/server" \
20
+  "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"

Loading…
Cancel
Save