fix(13-05): catalog air config watches css and rebuilds tailwind on change
This commit is contained in:
parent
caba6c15ee
commit
9d17acbe2b
2 changed files with 13 additions and 2 deletions
11
backend/.air-catalog.toml
Normal file
11
backend/.air-catalog.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
root = "."
|
||||||
|
tmp_dir = "tmp"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
cmd = "templ generate && ./bin/tailwindcss -i tailwind.input.css -o static/tailwind.css && go build -tags catalog -o ./tmp/web ./cmd/web"
|
||||||
|
bin = "./tmp/web"
|
||||||
|
include_ext = ["go", "templ", "css"]
|
||||||
|
exclude_dir = ["tmp", "bin", "static", ".git", "internal/db/sqlc"]
|
||||||
|
exclude_regex = [".*_templ\\.go$"]
|
||||||
|
delay = 200
|
||||||
|
stop_on_error = true
|
||||||
|
|
@ -138,9 +138,9 @@ worker: db-up
|
||||||
go run ./cmd/worker
|
go run ./cmd/worker
|
||||||
|
|
||||||
# Run the component catalog with live-reload on localhost:8080/ui-catalog (dev-only).
|
# Run the component catalog with live-reload on localhost:8080/ui-catalog (dev-only).
|
||||||
|
# Watches .go, .templ, and .css — rebuilds Tailwind + Go on any change.
|
||||||
# Visit http://localhost:8080/ui-catalog to review all 11 component sections.
|
# Visit http://localhost:8080/ui-catalog to review all 11 component sections.
|
||||||
catalog:
|
catalog:
|
||||||
just generate
|
|
||||||
DATABASE_URL='{{ database_url }}' \
|
DATABASE_URL='{{ database_url }}' \
|
||||||
S3_ENDPOINT='{{ s3_endpoint }}' \
|
S3_ENDPOINT='{{ s3_endpoint }}' \
|
||||||
S3_BUCKET='{{ s3_bucket }}' \
|
S3_BUCKET='{{ s3_bucket }}' \
|
||||||
|
|
@ -148,7 +148,7 @@ catalog:
|
||||||
S3_ACCESS_KEY='{{ s3_access_key }}' \
|
S3_ACCESS_KEY='{{ s3_access_key }}' \
|
||||||
S3_SECRET_KEY='{{ s3_secret_key }}' \
|
S3_SECRET_KEY='{{ s3_secret_key }}' \
|
||||||
S3_USE_PATH_STYLE='{{ s3_use_path_style }}' \
|
S3_USE_PATH_STYLE='{{ s3_use_path_style }}' \
|
||||||
air -c .air.toml --build.cmd "templ generate && go build -tags catalog -o ./tmp/web ./cmd/web"
|
air -c .air-catalog.toml
|
||||||
|
|
||||||
test:
|
test:
|
||||||
just generate
|
just generate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue