From 24d1318c9f27b9ee789017bbafcab30b6566b84a Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 11 Nov 2023 17:21:22 +1000 Subject: [PATCH] add air to resourceD more info: https://github.com/cosmtrek/air --- resource/.air.toml | 46 +++++++++++++++++++++++++++++++++++++++++++++ resource/.gitignore | 1 + 2 files changed, 47 insertions(+) create mode 100644 resource/.air.toml diff --git a/resource/.air.toml b/resource/.air.toml new file mode 100644 index 0000000..b928116 --- /dev/null +++ b/resource/.air.toml @@ -0,0 +1,46 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = [] + bin = "./tmp/main" + cmd = "go build -o ./tmp/main ." + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = [ ".*\\.md" ] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + time = false + +[misc] + clean_on_exit = false + +[screen] + clear_on_rebuild = false + keep_scroll = true diff --git a/resource/.gitignore b/resource/.gitignore index 4bf8d84..bac04d0 100644 --- a/resource/.gitignore +++ b/resource/.gitignore @@ -2,3 +2,4 @@ resourced.toml resourced .DS_Store .env +tmp