projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7bc0d
)
Fix dev mode
author
Chocobozzz
<me@florianbigard.com>
Tue, 22 Oct 2019 06:55:05 +0000
(08:55 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 22 Oct 2019 06:55:05 +0000
(08:55 +0200)
scripts/watch/server.sh
patch
|
blob
|
history
diff --git
a/scripts/watch/server.sh
b/scripts/watch/server.sh
index f6721a18eaf1e520204ba53a5caba515d732dc4a..635bebf8e510ad140b242b8e6b9d0f2c95f29531 100755
(executable)
--- a/
scripts/watch/server.sh
+++ b/
scripts/watch/server.sh
@@
-9,6
+9,9
@@
cp -r "./client/src/locale/target" "./client/dist/locale"
rm -rf "./dist"
+mkdir "./dist"
+cp "./tsconfig.json" "./dist"
+
NODE_ENV=test npm run concurrently -- -k \
- "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
+ "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"