-
Notifications
You must be signed in to change notification settings - Fork 0
/
.air.toml
33 lines (26 loc) · 824 Bytes
/
.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
# Config file for `air` - a live reloading tool for Go applications.
[build]
# Working directory
cmd = "go run main.go"
bin = "main.exe" # Binary name to output for Windows
dir = "."
# Watch files with the following extensions
include_ext = ["go", "tmpl", "templ"]
# Exclude the following files/directories
exclude_dir = ["vendor", "node_modules"]
[log]
level = "debug"
[runner]
# Command to run the templ generation tool
cmd = "templ generate"
# Run the templ generation tool before the main command
pre = true
[watch]
# Directories to watch for changes
dirs = ["."]
# Files to watch for changes
files = ["**/*.go", "**/*.tmpl", "**/*.templ"]
# Exclude directories from being watched
exclude = ["vendor", "node_modules"]
# Ensure the runner is executed before running the build command
pre_build = "templ generate"