mirror of https://github.com/Chocobozzz/PeerTube
Try to improve server watch script
parent
5f85f8aa1c
commit
df0fd9043c
|
@ -12,6 +12,9 @@ rm -rf "./dist"
|
||||||
mkdir "./dist"
|
mkdir "./dist"
|
||||||
cp "./tsconfig.json" "./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 \
|
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 nodemon -- --delay 1 --watch ./dist dist/server" \
|
||||||
"npm run tsc -- --sourceMap --preserveWatchOutput -w"
|
"npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"
|
||||||
|
|
Loading…
Reference in New Issue