passwd-mgr/Makefile

23 lines
748 B
Makefile

.DEFAULT_GOAL := live
live/templ:
go run github.com/a-h/templ/cmd/templ@latest generate --watch --proxy="http://localhost:8080" --proxyport=8090 --open-browser=false -v
live/server:
go run github.com/air-verse/air@latest \
--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:
npx tailwindcss -o assets/css/style.css --minify --watch
live/sync_assets:
go run github.com/air-verse/air@latest \
--build.cmd "go run github.com/a-h/templ/cmd/templ@latest generate --notify-proxy" \
--build.delay "100" \
--build.include_dir "assets"
live:
make -j4 live/templ live/server live/tailwind live/sync_assets