cake-order-tracker/makefile
2026-06-16 10:57:15 +02:00

23 lines
545 B
Makefile

.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"