aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev')
-rwxr-xr-xscripts/dev/cli.sh2
-rwxr-xr-xscripts/dev/client.sh4
-rwxr-xr-xscripts/dev/embed.sh2
-rwxr-xr-xscripts/dev/index.sh6
-rwxr-xr-xscripts/dev/server.sh8
5 files changed, 12 insertions, 10 deletions
diff --git a/scripts/dev/cli.sh b/scripts/dev/cli.sh
index 4b6fe5508..dc6f0af0d 100755
--- a/scripts/dev/cli.sh
+++ b/scripts/dev/cli.sh
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -eu 3set -eu
4 4
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh
index bcb8b88f6..e9cade800 100755
--- a/scripts/dev/client.sh
+++ b/scripts/dev/client.sh
@@ -1,11 +1,11 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -eu 3set -eu
4 4
5clientCommand="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" 5clientCommand="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"
6serverCommand="npm run build:server && NODE_ENV=test node dist/server" 6serverCommand="npm run build:server && NODE_ENV=test node dist/server"
7 7
8if [ ! -z ${1+x} ] && [ "$1" == "--skip-server" ]; then 8if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then
9 NODE_ENV=test eval $clientCommand 9 NODE_ENV=test eval $clientCommand
10else 10else
11 NODE_ENV=test node node_modules/.bin/concurrently -k \ 11 NODE_ENV=test node node_modules/.bin/concurrently -k \
diff --git a/scripts/dev/embed.sh b/scripts/dev/embed.sh
index 9b0ef27cf..b4835604e 100755
--- a/scripts/dev/embed.sh
+++ b/scripts/dev/embed.sh
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -eu 3set -eu
4 4
diff --git a/scripts/dev/index.sh b/scripts/dev/index.sh
index d221d2fc8..56addb7fe 100755
--- a/scripts/dev/index.sh
+++ b/scripts/dev/index.sh
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -eu 3set -eu
4 4
5NODE_ENV=test npm run concurrently -- -k \ 5NODE_ENV=test npm run concurrently -- -k \
6 "npm run dev:client -- --skip-server" \ 6 "sh scripts/dev/client.sh --skip-server" \
7 "npm run dev:server" 7 "sh scripts/dev/server.sh --skip-client"
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh
index b09a966dd..680ca3d79 100755
--- a/scripts/dev/server.sh
+++ b/scripts/dev/server.sh
@@ -1,10 +1,12 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -eu 3set -eu
4 4
5if [ ! -f "./client/dist/en-US/index.html" ]; then 5if [ ! -f "./client/dist/en-US/index.html" ]; then
6 echo "client/dist/en-US/index.html does not exist, compile client files..." 6 if [ -z ${1+x} ] || [ "$1" != "--skip-client" ]; then
7 npm run build:client -- --light 7 echo "client/dist/en-US/index.html does not exist, compile client files..."
8 npm run build:client -- --light
9 fi
8fi 10fi
9 11
10# Copy locales 12# Copy locales