From 3df5f6291e56ebc50831e8e8c1bf5fa0aecd7b20 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Mon, 17 Feb 2020 18:24:06 +0100 Subject: Restructure the project for usage with npm/yarn Signed-off-by: Max Magorsch --- bin/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/run.sh (limited to 'bin') diff --git a/bin/run.sh b/bin/run.sh new file mode 100755 index 0000000..82e720a --- /dev/null +++ b/bin/run.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# POSIX sh, not bash! +die() { + set +x + echo "$*" 1>&2 + exit 1 +} +# export for debugging +[ "$DEBUG" == "1" ] && set -x +# go to volume +cd /repo +npm install || die "FAIL:${PWD}: npm install failed" +npm run dist || die "FAIL:${PWD}: npm run dist failed" \ No newline at end of file -- cgit v1.2.3-65-gdbad