46 lines
866 B
TOML
46 lines
866 B
TOML
# Air 热加载配置(可选,当前使用 CompileDaemon)
|
||
# 安装: go install github.com/air-verse/air@latest
|
||
# 运行: air
|
||
|
||
root = "."
|
||
tmp_dir = "tmp"
|
||
|
||
[build]
|
||
cmd = "go build -o ./tmp/main ."
|
||
bin = "./tmp/main"
|
||
include_ext = ["go", "tpl", "tmpl", "html"]
|
||
exclude_dir = ["tmp", "vendor", "node_modules"]
|
||
exclude_file = []
|
||
exclude_regex = ["_test\\.go$"]
|
||
exclude_unchanged = false
|
||
follow_symlink = false
|
||
full_bin = ""
|
||
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 = true
|
||
|
||
[screen]
|
||
clear_on_rebuild = true
|
||
keep_scroll = true
|