From 27bc95867442c772841fb183a625bbda61dede51 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Jun 2021 17:38:31 +0200 Subject: Bidi support --- scripts/dev/client.sh | 8 +++++++- scripts/dev/index.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts/dev') diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh index e9cade800..e5b53bae5 100755 --- a/scripts/dev/client.sh +++ b/scripts/dev/client.sh @@ -2,7 +2,13 @@ set -eu -clientCommand="cd client && node node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000" +clientConfiguration="hmr" + +if [ ! -z ${2+x} ] && [ "$2" = "--ar-locale" ]; then + clientConfiguration="ar-locale" +fi + +clientCommand="cd client && node node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --disable-host-check --port 3000" serverCommand="npm run build:server && NODE_ENV=test node dist/server" if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then diff --git a/scripts/dev/index.sh b/scripts/dev/index.sh index 56addb7fe..beb88606f 100755 --- a/scripts/dev/index.sh +++ b/scripts/dev/index.sh @@ -3,5 +3,5 @@ set -eu NODE_ENV=test npm run concurrently -- -k \ - "sh scripts/dev/client.sh --skip-server" \ + "sh scripts/dev/client.sh --skip-server ${1:-}" \ "sh scripts/dev/server.sh --skip-client" -- cgit v1.2.3