tooling
This commit is contained in:
parent
3b184c7c6f
commit
e829562062
3 changed files with 97 additions and 8 deletions
23
makefile
Normal file
23
makefile
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue