aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-18 10:34:23 +0100
committerChocobozzz <me@florianbigard.com>2019-11-18 10:34:23 +0100
commitdf0fd9043c9f76d2481cf118297eaabc8b8f30fc (patch)
tree3778117fdd62a3cc2897d8db559365a60614aef0 /scripts
parent5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8 (diff)
downloadPeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.tar.gz
PeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.tar.zst
PeerTube-df0fd9043c9f76d2481cf118297eaabc8b8f30fc.zip
Try to improve server watch script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/watch/server.sh7
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"
12mkdir "./dist" 12mkdir "./dist"
13cp "./tsconfig.json" "./dist" 13cp "./tsconfig.json" "./dist"
14 14
15npm run tsc -- --incremental --sourceMap
16cp -r ./server/static ./server/assets ./dist/server
17
15NODE_ENV=test npm run concurrently -- -k \ 18NODE_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"