Add .air.toml configuration file for live reloading

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-07-19 18:15:17 -06:00
parent c735817fea
commit 13ed80c1a2

16
.air.toml Normal file
View File

@@ -0,0 +1,16 @@
# Docs for .air.toml
# https://github.com/cosmtrek/air/blob/master/air_example.toml
root = "."
[build]
cmd = "task build"
full_bin = "task serve"
delay = 100
exclude_dir = ["tmp", "dist"]
exclude_file = ["internal/view/static/css/style.css"]
exclude_regex = ["_test.go", "_generated.go", ".sql.go", ".gen.go"]
include_ext = ["go", "sql", "js", "css", "json"]
[log]
main_only = true