From a666e02256108b0366693ec7fd52d5a54cba362c Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Mon, 21 Aug 2023 01:04:48 -0400 Subject: [PATCH 1/2] air toml config with tmp ignore --- .air.toml | 44 ++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .air.toml diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..ad439e1 --- /dev/null +++ b/.air.toml @@ -0,0 +1,44 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = [] + bin = "./tmp/main" + cmd = "go build -o ./tmp/main ." + delay = 0 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = ["_test.go"] + 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 + 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/.gitignore b/.gitignore index 2531ed9..23a33c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env docker-compose.yml .DS_Store -*bin \ No newline at end of file +*bin +./tmp \ No newline at end of file From 6495e4a4bd126ad1a36193e008e48516b94e5f67 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Mon, 21 Aug 2023 01:07:32 -0400 Subject: [PATCH 2/2] fix: remove . --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 23a33c5..b0675a0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ docker-compose.yml .DS_Store *bin -./tmp \ No newline at end of file +/tmp \ No newline at end of file