diff options
Diffstat (limited to 'watch')
-rwxr-xr-x | watch | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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" |