From cac323d9ae70f55a43fd99b73e60cf614be11797 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 19 Jun 2024 21:17:19 +0200 Subject: build: use modd instead of watchexec --- justfile | 2 +- modd.conf | 3 +++ nix/dev-shell.nix | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 modd.conf 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 -- cgit 1.4.1