From 0e4ffb4b678962d5ff7a4a7d8952033bc84725da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Andr=C3=A8s?= Date: Tue, 27 Mar 2018 09:35:12 +0100 Subject: Clean shell scripts (#398) --- scripts/watch/client.sh | 6 ++++-- scripts/watch/server.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts/watch') diff --git a/scripts/watch/client.sh b/scripts/watch/client.sh index 2481e2269..710c87037 100755 --- a/scripts/watch/client.sh +++ b/scripts/watch/client.sh @@ -1,5 +1,7 @@ -#!/usr/bin/env sh +#!/bin/sh -cd client || exit -1 +set -eu + +cd client npm run ng -- server --hmr --host 0.0.0.0 --disable-host-check --port 3000 diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh index 448f69552..42a594d85 100755 --- a/scripts/watch/server.sh +++ b/scripts/watch/server.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env sh +#!/bin/sh + +set -eu NODE_ENV=test concurrently -k \ "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ -- cgit v1.2.3