chore: add .air.toml for air (hot reloading for Go apps)

This commit is contained in:
Vojtěch Mareš 2025-04-15 20:19:25 +02:00
parent 6ebd210b26
commit f6826f7669
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

18
.air.toml Normal file
View file

@ -0,0 +1,18 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_regex = ["_test.go"]
include_ext = ["go", "tpl", "tmpl", "html"]
[misc]
clean_on_exit = true
[screen]
clear_on_rebuild = true
keep_scroll = true