From f6826f766910e14ee016025b1299379b57b3bb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Mare=C5=A1?= Date: Tue, 15 Apr 2025 20:19:25 +0200 Subject: [PATCH] chore: add .air.toml for air (hot reloading for Go apps) --- .air.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .air.toml diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..4dc11c1 --- /dev/null +++ b/.air.toml @@ -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