From caa36cda000ee95f4871392fd0da755346000ae8 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Mon, 8 Jan 2024 21:23:42 +0100 Subject: [PATCH] Make air compatible with templ --- .air.toml | 4 ++-- justfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.air.toml b/.air.toml index 85e2ea5..87aff9f 100644 --- a/.air.toml +++ b/.air.toml @@ -9,12 +9,12 @@ tmp_dir = "tmp" delay = 0 exclude_dir = ["tmp", "vendor", "testdata", "node_modules"] exclude_file = [] - exclude_regex = ["_test.go"] + exclude_regex = ["_templ.go"] exclude_unchanged = false follow_symlink = false full_bin = "" include_dir = [] - include_ext = ["go", "tpl", "tmpl", "html", "scss", "js", "xml", "png"] + include_ext = ["go", "templ", "scss", "js", "xml", "png"] include_file = [] kill_delay = "0s" log = "build-errors.log" diff --git a/justfile b/justfile index 4ee888c..d377c06 100644 --- a/justfile +++ b/justfile @@ -16,7 +16,7 @@ deploy: templ tailwind ssh njump 'systemctl start njump' debug-build: templ tailwind - go build -tags=nocache -o ./tmp/main . + go build -tags=nocache -o /tmp/njump . templ: templ generate