-
Notifications
You must be signed in to change notification settings - Fork 2
/
.air.toml
54 lines (49 loc) · 1.22 KB
/
.air.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["dist/assets", "tmp", "vendor", "testdata"]
exclude_file = ["components/**/*.go", "db/queries/*.go"]
exclude_regex = ["_test.go"]
exclude_unchanged = true
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "templ", "html", "css", "sql"]
include_file = []
kill_delay = "5s"
log = "build-errors.log"
poll = false
poll_interval = 500
post_cmd = [
# https://github.com/cosmtrek/air/issues/534
"lsof -i :8080 -sTCP:LISTEN | sed 1d | awk '{print $2}' | xargs kill -9",
]
pre_cmd = [
"lsof -i :8080 -sTCP:LISTEN | sed 1d | awk '{print $2}' | xargs kill -9",
"templ generate -path ./components",
"tailwindcss -i ./styles/input.css -o ./dist/assets/css/output@dev.css",
"sqlc generate",
]
rerun = true
rerun_delay = 500
send_interrupt = true
stop_on_error = true
[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