aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev')
-rwxr-xr-xscripts/dev/client.sh6
-rwxr-xr-xscripts/dev/embed.sh4
-rwxr-xr-xscripts/dev/index.sh2
-rwxr-xr-xscripts/dev/server.sh2
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
9fi 9fi
10 10
11clientCommand="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" 11clientCommand="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"
12serverCommand="npm run build:server && NODE_ENV=test node dist/server" 12serverCommand="npm run build:server && NODE_ENV=dev node dist/server"
13 13
14if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then 14if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then
15 NODE_ENV=test eval $clientCommand 15 eval $clientCommand
16else 16else
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"
20fi 20fi
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
3set -eu 3set -eu
4 4
5NODE_ENV=test npm run concurrently -- -k \ 5npm 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
3set -eu 3set -eu
4 4
5NODE_ENV=test npm run concurrently -- -k \ 5npm 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
22cp -r ./server/static ./server/assets ./dist/server 22cp -r ./server/static ./server/assets ./dist/server
23cp -r "./server/lib/emails" "./dist/server/lib" 23cp -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"'