From 95c70591ffd4f35bbc27e1d5f787d896150b5fff Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 13 Feb 2021 19:59:56 +0100 Subject: Update dev tooling --- watch | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'watch') diff --git a/watch b/watch index 802c503..fd9f3bb 100755 --- a/watch +++ b/watch @@ -1,13 +1,11 @@ #!/usr/bin/env bash +set -euo pipefail python -m http.server --directory public 8000 & trap "fuser -k 8000/tcp" EXIT -CMD="clear && wasm-pack build --target web" - -while true; do - - find src | entr -d -s "$CMD" - -done +watchexec \ + --clear \ + --watch src \ + "wasm-pack build --target web" -- cgit v1.2.3