all repos — searchix @ cac323d9ae70f55a43fd99b73e60cf614be11797

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: use modd instead of watchexec
Alan Pearce alan@alanpearce.eu
Wed, 19 Jun 2024 21:17:19 +0200
commit

cac323d9ae70f55a43fd99b73e60cf614be11797

parent

28e4c215fe0590788ea36c50b7aa044d36bc90d8

3 files changed, 5 insertions(+), 1 deletions(-)

jump to
M justfilejustfile
@@ -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
A modd.conf
@@ -0,0 +1,3 @@+**/*.go config.toml {
+  daemon: wgo run -exit ./cmd/searchix-web --live --config config.toml
+}
M nix/dev-shell.nixnix/dev-shell.nix
@@ -11,6 +11,7 @@ mkShell {   packages = with pkgs;  [
     goEnv
 
+    modd
     brotli
     bleve
     wgo