diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-18 10:34:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-18 10:34:23 +0100 |
commit | df0fd9043c9f76d2481cf118297eaabc8b8f30fc (patch) | |
tree | 3778117fdd62a3cc2897d8db559365a60614aef0 /scripts/watch | |
parent | 5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8 (diff) | |
download | PeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.tar.gz PeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.tar.zst PeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.zip |
Try to improve server watch script
Diffstat (limited to 'scripts/watch')
-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" |