chore: add .air.toml for air (hot reloading for Go apps)
This commit is contained in:
parent
6ebd210b26
commit
f6826f7669
1 changed files with 18 additions and 0 deletions
18
.air.toml
Normal file
18
.air.toml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue