32 lines
1.1 KiB
TOML
32 lines
1.1 KiB
TOML
# Live reload for the single archie binary during development.
|
|
#
|
|
# The frontend has its own loop -- `task dev:ui` runs Vite with HMR and proxies
|
|
# /api here -- so this watcher deliberately ignores ui/. Watching it would
|
|
# rebuild the Go binary on every keystroke in a CSS file, and rebuilding on
|
|
# ui/dist changes would loop against `task ui`.
|
|
#
|
|
# Built with `-tags no_ui`: during development Vite serves the frontend
|
|
# directly with HMR, so embedding ui/dist would only slow down reloads.
|
|
root = "."
|
|
tmp_dir = ".air"
|
|
|
|
[build]
|
|
cmd = "go build -tags no_ui -o ./.air/archie ./cmd/archie"
|
|
# `bin` is deprecated in air; entrypoint is the current key.
|
|
entrypoint = "./.air/archie"
|
|
include_ext = ["go", "toml", "sql", "yaml", "cedar", "tmpl", "md"]
|
|
exclude_dir = ["ui", "bin", "docs", ".git", ".task", ".air", "tmp"]
|
|
exclude_regex = ["_test\\.go"]
|
|
stop_on_error = true
|
|
delay = 400
|
|
|
|
[log]
|
|
time = true
|
|
# Only air's own build/restart lines. Without this it prints a "watching X"
|
|
# line per directory on every start, which buries Vite's output when both
|
|
# run in one terminal under `task dev`.
|
|
main_only = true
|
|
|
|
[misc]
|
|
clean_on_exit = true
|