aboutsummaryrefslogtreecommitdiff
path: root/watch
blob: fd9f3bb2d9705c378b11e44fedb52af1047da3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -euo pipefail

python -m http.server --directory public 8000 &

trap "fuser -k 8000/tcp" EXIT

watchexec \
  --clear \
  --watch src \
  "wasm-pack build --target web"