aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev')
-rwxr-xr-xscripts/dev/client.sh5
-rwxr-xr-xscripts/dev/server.sh8
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh
new file mode 100755
index 000000000..6d4e7000e
--- /dev/null
+++ b/scripts/dev/client.sh
@@ -0,0 +1,5 @@
1#!/usr/bin/env sh
2
3NODE_ENV=test concurrently -k \
4 "npm run watch:client" \
5 "npm run build:server && NODE_ENV=test npm start"
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh
new file mode 100755
index 000000000..bff26cb4b
--- /dev/null
+++ b/scripts/dev/server.sh
@@ -0,0 +1,8 @@
1#!/usr/bin/env sh
2
3if [ ! -d "./client/dist" ]; then
4 echo "client/dist does not exist, compile client files..."
5 npm run build:client
6fi
7
8npm run watch:server