aboutsummaryrefslogtreecommitdiff
path: root/watch
diff options
context:
space:
mode:
authorJoris2020-01-28 09:55:58 +0100
committerJoris2020-01-29 10:12:31 +0100
commit1b6a7e0d00703e3da2e1620b5a2b2cba027161de (patch)
tree5143f784e1529d3b6c04116c84f09c426bb257b0 /watch
parent197b6fa7aa810147d63209408c3a378ec552d0f4 (diff)
Implement game of life
Diffstat (limited to 'watch')
-rwxr-xr-xwatch13
1 files changed, 13 insertions, 0 deletions
diff --git a/watch b/watch
new file mode 100755
index 0000000..802c503
--- /dev/null
+++ b/watch
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+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