From df0fd9043c9f76d2481cf118297eaabc8b8f30fc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Nov 2019 10:34:23 +0100 Subject: Try to improve server watch script --- scripts/watch/server.sh | 7 +++++-- 1 file 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" mkdir "./dist" cp "./tsconfig.json" "./dist" +npm run tsc -- --incremental --sourceMap +cp -r ./server/static ./server/assets ./dist/server + NODE_ENV=test npm run concurrently -- -k \ - "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ - "npm run tsc -- --sourceMap --preserveWatchOutput -w" + "npm run nodemon -- --delay 1 --watch ./dist dist/server" \ + "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w" -- cgit v1.2.3