passwd-mgr/Makefile
erius d796a3c4e8 Added echo as backend web server
Added an example templ index.templ template
Create tailwind config for building css
Added Makefile to easily deplot and live-reload the app while developing
Added README.md
Added some other web assets in assets directory
2024-06-21 03:23:21 +03:00

23 lines
597 B
Makefile

.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