diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/client.sh | 6 | ||||
-rwxr-xr-x | scripts/dev/embed.sh | 4 | ||||
-rwxr-xr-x | scripts/dev/index.sh | 2 | ||||
-rwxr-xr-x | scripts/dev/server.sh | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh index 1846f9a7d..92e8bb6ac 100755 --- a/scripts/dev/client.sh +++ b/scripts/dev/client.sh | |||
@@ -9,12 +9,12 @@ if [ ! -z ${2+x} ] && [ "$2" = "--ar-locale" ]; then | |||
9 | fi | 9 | fi |
10 | 10 | ||
11 | clientCommand="cd client && node --max_old_space_size=4096 node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --disable-host-check --port 3000" | 11 | clientCommand="cd client && node --max_old_space_size=4096 node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --disable-host-check --port 3000" |
12 | serverCommand="npm run build:server && NODE_ENV=test node dist/server" | 12 | serverCommand="npm run build:server && NODE_ENV=dev node dist/server" |
13 | 13 | ||
14 | if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then | 14 | if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then |
15 | NODE_ENV=test eval $clientCommand | 15 | eval $clientCommand |
16 | else | 16 | else |
17 | NODE_ENV=test node node_modules/.bin/concurrently -k \ | 17 | node node_modules/.bin/concurrently -k \ |
18 | "$clientCommand" \ | 18 | "$clientCommand" \ |
19 | "$serverCommand" | 19 | "$serverCommand" |
20 | fi | 20 | fi |
diff --git a/scripts/dev/embed.sh b/scripts/dev/embed.sh index b4835604e..e694950e6 100755 --- a/scripts/dev/embed.sh +++ b/scripts/dev/embed.sh | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | NODE_ENV=test npm run concurrently -- -k \ | 5 | npm run concurrently -- -k \ |
6 | "cd client && npm run webpack -- --config webpack/webpack.video-embed.js --mode development --watch" \ | 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" | 7 | "npm run build:server && NODE_ENV=dev npm start" |
diff --git a/scripts/dev/index.sh b/scripts/dev/index.sh index beb88606f..7e0332115 100755 --- a/scripts/dev/index.sh +++ b/scripts/dev/index.sh | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | NODE_ENV=test npm run concurrently -- -k \ | 5 | npm run concurrently -- -k \ |
6 | "sh scripts/dev/client.sh --skip-server ${1:-}" \ | 6 | "sh scripts/dev/client.sh --skip-server ${1:-}" \ |
7 | "sh scripts/dev/server.sh --skip-client" | 7 | "sh scripts/dev/server.sh --skip-client" |
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh index 9dae43a63..c52c5124c 100755 --- a/scripts/dev/server.sh +++ b/scripts/dev/server.sh | |||
@@ -22,4 +22,4 @@ npm run resolve-tspaths:server | |||
22 | cp -r ./server/static ./server/assets ./dist/server | 22 | cp -r ./server/static ./server/assets ./dist/server |
23 | cp -r "./server/lib/emails" "./dist/server/lib" | 23 | cp -r "./server/lib/emails" "./dist/server/lib" |
24 | 24 | ||
25 | ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=test node dist/server"' | 25 | ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=dev node dist/server"' |