Try to improve server watch script

pull/2283/head
Chocobozzz 2019-11-18 10:34:23 +01:00
parent 5f85f8aa1c
commit df0fd9043c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 2 deletions

View File

@ -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"