From b903f3755d041e20bf7b18a8f1bfb3feda985ac3 Mon Sep 17 00:00:00 2001 From: Ananth Venkatesh Date: Sat, 25 Jan 2025 02:39:22 -0500 Subject: [PATCH] build: replace `elm reactor` with watch script for using custom html template --- flake.nix | 1 + watch.sh | 1 + 2 files changed, 2 insertions(+) create mode 100755 watch.sh diff --git a/flake.nix b/flake.nix index 94ff734..9a17dba 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ elmPackages.elm elmPackages.elm-test elmPackages.elm-format + entr ]; }; diff --git a/watch.sh b/watch.sh new file mode 100755 index 0000000..012d98b --- /dev/null +++ b/watch.sh @@ -0,0 +1 @@ +find src/ | entr -r elm make src/Main.elm --output compiled/Main.js