diff options
Diffstat (limited to 'scripts/dev/server.sh')
-rwxr-xr-x | scripts/dev/server.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh index 468af0a56..9dae43a63 100755 --- a/scripts/dev/server.sh +++ b/scripts/dev/server.sh | |||
@@ -14,15 +14,12 @@ mkdir -p "./client/dist" | |||
14 | rm -rf "./client/dist/locale" | 14 | rm -rf "./client/dist/locale" |
15 | cp -r "./client/src/locale" "./client/dist/locale" | 15 | cp -r "./client/src/locale" "./client/dist/locale" |
16 | 16 | ||
17 | rm -rf "./dist" | 17 | mkdir -p "./dist/server/lib" |
18 | |||
19 | mkdir "./dist" | ||
20 | cp "./tsconfig.json" "./dist" | ||
21 | 18 | ||
22 | npm run tsc -- -b -v --incremental | 19 | npm run tsc -- -b -v --incremental |
20 | npm run resolve-tspaths:server | ||
21 | |||
23 | cp -r ./server/static ./server/assets ./dist/server | 22 | cp -r ./server/static ./server/assets ./dist/server |
24 | cp -r "./server/lib/emails" "./dist/server/lib" | 23 | cp -r "./server/lib/emails" "./dist/server/lib" |
25 | 24 | ||
26 | NODE_ENV=test node node_modules/.bin/concurrently -k \ | 25 | ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=test node dist/server"' |
27 | "node_modules/.bin/nodemon --enable-source-maps --delay 1 --watch ./dist dist/server" \ | ||
28 | "node_modules/.bin/tsc -b -w --preserveWatchOutput" | ||