about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-19 21:17:19 +0200
committerAlan Pearce2024-06-19 21:17:19 +0200
commitcac323d9ae70f55a43fd99b73e60cf614be11797 (patch)
tree11e2cd2f5069106631d0048a71751e3ef2802e10
parent28e4c215fe0590788ea36c50b7aa044d36bc90d8 (diff)
downloadsearchix-cac323d9ae70f55a43fd99b73e60cf614be11797.tar.lz
searchix-cac323d9ae70f55a43fd99b73e60cf614be11797.tar.zst
searchix-cac323d9ae70f55a43fd99b73e60cf614be11797.zip
build: use modd instead of watchexec
-rw-r--r--justfile2
-rw-r--r--modd.conf3
-rw-r--r--nix/dev-shell.nix1
3 files changed, 5 insertions, 1 deletions
diff --git a/justfile b/justfile
index 053578a..812dd20 100644
--- a/justfile
+++ b/justfile
@@ -34,7 +34,7 @@ changelog:
 	convco changelog | prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
 
 dev:
-	watchexec --no-vcs-ignore --filter "**/*.go" --filter config.toml -r wgo run -exit ./cmd/searchix-web --live --config config.toml
+	modd
 
 reindex:
 	wgo run --exit ./cmd/searchix-web --config config.toml --replace
diff --git a/modd.conf b/modd.conf
new file mode 100644
index 0000000..8fced57
--- /dev/null
+++ b/modd.conf
@@ -0,0 +1,3 @@
+**/*.go config.toml {
+  daemon: wgo run -exit ./cmd/searchix-web --live --config config.toml
+}
diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix
index 0ba6b91..58bf467 100644
--- a/nix/dev-shell.nix
+++ b/nix/dev-shell.nix
@@ -11,6 +11,7 @@ mkShell {
   packages = with pkgs;  [
     goEnv
 
+    modd
     brotli
     bleve
     wgo