diff options
Diffstat (limited to 'scripts/dev')
-rwxr-xr-x | scripts/dev/client.sh | 2 | ||||
-rw-r--r-- | scripts/dev/embed.sh | 7 | ||||
-rwxr-xr-x | scripts/dev/server.sh | 17 |
3 files changed, 24 insertions, 2 deletions
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh index c630de2c4..d6669ed78 100755 --- a/scripts/dev/client.sh +++ b/scripts/dev/client.sh | |||
@@ -3,5 +3,5 @@ | |||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | NODE_ENV=test npm run concurrently -- -k \ | 5 | NODE_ENV=test npm run concurrently -- -k \ |
6 | "npm run watch:client" \ | 6 | "cd client && npm run ng -- serve --proxy-config proxy.config.json --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000" \ |
7 | "npm run build:server && NODE_ENV=test npm start" | 7 | "npm run build:server && NODE_ENV=test npm start" |
diff --git a/scripts/dev/embed.sh b/scripts/dev/embed.sh new file mode 100644 index 000000000..9b0ef27cf --- /dev/null +++ b/scripts/dev/embed.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | NODE_ENV=test npm run concurrently -- -k \ | ||
6 | "cd client && npm run webpack -- --config webpack/webpack.video-embed.js --mode development --watch" \ | ||
7 | "npm run build:server && NODE_ENV=test npm start" | ||
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh index beee5b8d4..a7fa88fbd 100755 --- a/scripts/dev/server.sh +++ b/scripts/dev/server.sh | |||
@@ -7,4 +7,19 @@ if [ ! -f "./client/dist/en-US/index.html" ]; then | |||
7 | npm run build:client -- --light | 7 | npm run build:client -- --light |
8 | fi | 8 | fi |
9 | 9 | ||
10 | npm run watch:server | 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" | ||