budgit/Taskfile.yml

31 lines
1,007 B
YAML

version: "3"
vars:
TEMPL_PROXYBIND: '{{.TEMPL_PROXYBIND | default "127.0.0.1"}}'
TEMPL_PROXY: '{{.TEMPL_PROXY | default "http://127.0.0.1:9000"}}'
tasks:
# Development Tools
templ:
desc: Run templ with integrated server and hot reload
cmds:
- go tool templ generate --watch --cmd="go run ./cmd/server/main.go" --proxybind="{{.TEMPL_PROXYBIND}}" --proxy="{{.TEMPL_PROXY}}" --open-browser=false
tailwind-clean:
desc: Clean tailwind output
cmds:
- tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --clean
tailwind-watch:
desc: Run tailwindcss in watch mode
cmds:
- tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --watch
# Start development server
dev:
desc: Start development server with hot reload
deps:
- tailwind-clean
cmds:
- echo "Starting app..."
- task --parallel tailwind-watch templ
# Stop all services
down:
desc: Stop all services
cmds:
- docker compose down