aboutsummaryrefslogtreecommitdiff
path: root/watch
diff options
context:
space:
mode:
authorJoris2021-02-13 19:59:56 +0100
committerJoris2021-02-13 19:59:56 +0100
commit95c70591ffd4f35bbc27e1d5f787d896150b5fff (patch)
tree8bc122d93d76e3ff5ad9a2be586c1a3d1c7f5482 /watch
parent492d1f0c93d559ab275ecd7974b156b93d395ac3 (diff)
Update dev tooling
Diffstat (limited to 'watch')
-rwxr-xr-xwatch12
1 files changed, 5 insertions, 7 deletions
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"