This commit is contained in:
bronkuu 2026-06-16 10:57:15 +02:00
parent 3b184c7c6f
commit e829562062
3 changed files with 97 additions and 8 deletions

23
makefile Normal file
View file

@ -0,0 +1,23 @@
.PHONY: live live/templ live/server
live:
go tool templ generate
make -j2 live/templ live/server
live/templ:
go tool templ generate \
--watch \
--proxy="http://localhost:8080" \
--open-browser=false \
-v
live/server:
go tool air \
-build.cmd "go build -o tmp/bin/main . && go tool templ generate --notify-proxy" \
-build.entrypoint "tmp/bin/main" \
-build.args_bin "--dev" \
-build.delay "100" \
-build.exclude_dir "tmp" \
-build.include_ext "go,css,js" \
-build.stop_on_error "false" \
-misc.clean_on_exit "true"