passwd-mgr/Makefile

24 lines
597 B
Makefile
Raw Normal View History

.DEFAULT_GOAL := live
live/templ:
templ generate --watch --proxy="http://localhost:8080" --proxyport=8090 --open-browser=false -v
live/server:
air \
--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:
tailwindcss -o assets/css/styles.css --minify --watch
live/sync_assets:
air \
--build.cmd "templ generate --notify-proxy" \
--build.delay "100" \
--build.include_dir "assets"
live:
make -j4 live/templ live/server live/tailwind live/sync_assets