diff options
-rwxr-xr-x | scripts/watch/server.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh index 8d8470954..2e3231865 100755 --- a/scripts/watch/server.sh +++ b/scripts/watch/server.sh | |||
@@ -12,6 +12,9 @@ rm -rf "./dist" | |||
12 | mkdir "./dist" | 12 | mkdir "./dist" |
13 | cp "./tsconfig.json" "./dist" | 13 | cp "./tsconfig.json" "./dist" |
14 | 14 | ||
15 | npm run tsc -- --incremental --sourceMap | ||
16 | cp -r ./server/static ./server/assets ./dist/server | ||
17 | |||
15 | NODE_ENV=test npm run concurrently -- -k \ | 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" \ | 19 | "npm run nodemon -- --delay 1 --watch ./dist dist/server" \ |
17 | "npm run tsc -- --sourceMap --preserveWatchOutput -w" | 20 | "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w" |