From f4dacee4908300f63200864b9f089874152a568c Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 29 Oct 2021 15:22:09 +0300 Subject: Add scripts --- scripts/debug.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/debug.sh (limited to 'scripts/debug.sh') diff --git a/scripts/debug.sh b/scripts/debug.sh new file mode 100755 index 0000000..0ae14a3 --- /dev/null +++ b/scripts/debug.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +TOP_LEVEL="$(git rev-parse --show-toplevel)" +PORT="${1:-8001}" + +echo ":: Watching directory src/ and serving continuous builds on http://localhost:${PORT}" + +bash scripts/_build-and-serve.sh ${PORT} +fswatch -or src | xargs -n1 -I{} bash scripts/_build-and-serve.sh ${PORT} -- cgit v1.3