- sqlc.yaml: postgresql engine, schema points at migrations/ (Pitfall 7), pgx/v5 sql_package - tailwind.input.css: @source globs for templ + internal/web Go files (Pitfall 3), @imports four ui/*.css files per UI-SPEC - .air.toml: watches .go + .templ, excludes generated *_templ.go (Pitfall 5), runs 'templ generate' pre-build - Tailwind watch is NOT wired into air pre_cmd (two-terminal workflow per RESEARCH Open Q2)
11 lines
277 B
TOML
11 lines
277 B
TOML
root = "."
|
|
tmp_dir = "tmp"
|
|
|
|
[build]
|
|
cmd = "templ generate && go build -o ./tmp/web ./cmd/web"
|
|
bin = "./tmp/web"
|
|
include_ext = ["go", "templ"]
|
|
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
|
exclude_regex = [".*_templ\\.go$"]
|
|
delay = 200
|
|
stop_on_error = true
|