2024-06-21 00:23:21 +00:00
|
|
|
.DEFAULT_GOAL := live
|
|
|
|
|
|
|
|
live/templ:
|
2024-07-04 09:46:08 +00:00
|
|
|
go run github.com/a-h/templ/cmd/templ@latest generate --watch --proxy="http://localhost:8080" --proxyport=8090 --open-browser=false -v
|
2024-06-21 00:23:21 +00:00
|
|
|
|
|
|
|
live/server:
|
2024-07-04 09:46:08 +00:00
|
|
|
go run github.com/air-verse/air@latest \
|
2024-06-21 00:23:21 +00:00
|
|
|
--build.cmd "go build -o tmp/bin/main" --build.bin "tmp/bin/main" --build.delay "100" \
|
|
|
|
--build.include_ext "go" \
|
|
|
|
--build.stop_on_error false \
|
|
|
|
--misc.clean_on_exit true
|
|
|
|
|
|
|
|
live/tailwind:
|
2024-07-04 09:46:08 +00:00
|
|
|
npx tailwindcss -o assets/css/style.css --minify --watch
|
2024-06-21 00:23:21 +00:00
|
|
|
|
|
|
|
live/sync_assets:
|
2024-07-04 09:46:08 +00:00
|
|
|
go run github.com/air-verse/air@latest \
|
|
|
|
--build.cmd "go run github.com/a-h/templ/cmd/templ@latest generate --notify-proxy" \
|
2024-06-21 00:23:21 +00:00
|
|
|
--build.delay "100" \
|
|
|
|
--build.include_dir "assets"
|
|
|
|
|
|
|
|
live:
|
|
|
|
make -j4 live/templ live/server live/tailwind live/sync_assets
|