-
-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy path.air.toml
More file actions
47 lines (43 loc) · 1.15 KB
/
.air.toml
File metadata and controls
47 lines (43 loc) · 1.15 KB
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
# Air configuration for Pulse hot-reload
# https://github.com/air-verse/air
root = "."
tmp_dir = "tmp"
[build]
# Build command - uses Pro build if available
cmd = """
if [ -d /opt/pulse-enterprise ] && [ "${HOT_DEV_USE_PRO:-true}" = "true" ]; then
cd /opt/pulse-enterprise && go build -buildvcs=false -o /opt/pulse/pulse ./cmd/pulse-enterprise
else
go build -o pulse ./cmd/pulse
fi
"""
# Binary to run
bin = "./pulse"
# Watch these directories
include_dir = ["cmd", "internal", "pkg"]
# Exclude these patterns
exclude_dir = ["vendor", "node_modules", "tmp", "frontend-modern", ".git"]
exclude_file = []
exclude_regex = ["_test\\.go$", "\\.tmp$", "~$"]
exclude_unchanged = true
# File extensions to watch
include_ext = ["go", "tpl", "tmpl", "html"]
# Kill old process before starting new one
kill_delay = "1s"
# Send interrupt signal first, then kill after delay
stop_on_error = false
# Log output
log = "build-errors.log"
# Colorize output
color_main = "yellow"
color_watcher = "cyan"
color_build = "green"
color_runner = "magenta"
[log]
# Show log time
time = false
# Only show main logs
main_only = false
[misc]
# Delete tmp directory on exit
clean_on_exit = true