build: use modd instead of watchexec
Alan Pearce alan@alanpearce.eu
Wed, 19 Jun 2024 21:17:19 +0200
3 files changed, 5 insertions(+), 1 deletions(-)
M justfile → 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
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.nix → nix/dev-shell.nix
@@ -11,6 +11,7 @@ mkShell { packages = with pkgs; [ goEnv + modd brotli bleve wgo