From 13ed80c1a2644d353d9d4dddc2ae350a14b29dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Eduardo=20Jer=C3=A9z=20Gir=C3=B3n?= Date: Fri, 19 Jul 2024 18:15:17 -0600 Subject: [PATCH] Add .air.toml configuration file for live reloading --- .air.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .air.toml diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..5eb6cb4 --- /dev/null +++ b/.air.toml @@ -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