Files
comfychan/Makefile
T
2026-08-24 10:48:29 -04:00

25 lines
615 B
Makefile

live/templ:
templ generate --watch --proxy="http://localhost:7676" --cmd="go run ./web" --open-browser=false -v
live/sync_assets:
go run github.com/air-verse/air@latest \
--build.cmd "templ generate --notify-proxy" \
--build.full_bin "true" \
--build.delay "100" \
--build.exclude_dir "" \
--build.include_dir "web/static" \
--build.include_ext "js,css"
live:
make -j2 live/templ live/sync_assets
db/seed:
sqlite3 ./internal/database/comfychan.db < ./internal/database/seed.sql
db/seed/f:
rm ./internal/database/comfychan.db && make db/seed
build:
templ generate
go build -o ./out/comfychan ./web