Fix dev mode
authorChocobozzz <me@florianbigard.com>
Tue, 22 Oct 2019 06:55:05 +0000 (08:55 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 22 Oct 2019 06:55:05 +0000 (08:55 +0200)
scripts/watch/server.sh

index f6721a18eaf1e520204ba53a5caba515d732dc4a..635bebf8e510ad140b242b8e6b9d0f2c95f29531 100755 (executable)
@@ -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"