]>
Commit | Line | Data |
---|---|---|
0e4ffb4b LA |
1 | #!/bin/sh |
2 | ||
3 | set -eu | |
66dd264f | 4 | |
47f6cb31 C |
5 | if [ ! -f "./client/dist/en-US/index.html" ]; then |
6 | echo "client/dist/en-US/index.html does not exist, compile client files..." | |
2adfc7ea | 7 | npm run build:client -- --light |
66dd264f C |
8 | fi |
9 | ||
c026a2e6 C |
10 | # Copy locales |
11 | mkdir -p "./client/dist" | |
12 | rm -rf "./client/dist/locale" | |
13 | cp -r "./client/src/locale" "./client/dist/locale" | |
14 | ||
15 | rm -rf "./dist" | |
16 | ||
17 | mkdir "./dist" | |
18 | cp "./tsconfig.json" "./dist" | |
19 | ||
20 | npm run tsc -- --incremental --sourceMap | |
21 | cp -r ./server/static ./server/assets ./dist/server | |
22 | ||
23 | NODE_ENV=test npm run concurrently -- -k \ | |
24 | "npm run nodemon -- --delay 1 --watch ./dist dist/server" \ | |
25 | "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w" |