build(dev): use air for backend live reload
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
2026-05-02 15:39:28 -04:00
parent a865457bbf
commit 64aa000323
6 changed files with 22 additions and 3 deletions

17
.air.toml Normal file
View File

@@ -0,0 +1,17 @@
root = "."
tmp_dir = "_scratch/air"
[build]
cmd = "go build -o ./_scratch/air/antholume ."
full_bin = "./_scratch/air/antholume serve"
delay = 1000
include_ext = ["go", "tpl", "tmpl", "html", "css", "js", "yaml", "yml"]
exclude_dir = ["_scratch", "build", "data", "frontend", "node_modules"]
exclude_file = ["assets/style.css"]
stop_on_error = true
[log]
time = true
[misc]
clean_on_exit = true