-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yml
More file actions
72 lines (58 loc) · 1.79 KB
/
Taskfile.yml
File metadata and controls
72 lines (58 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
vars:
TAILWIND_CMD:
sh: command -v tailwindcss >/dev/null 2>&1 && echo "tailwindcss" || echo "npx tailwindcss@latest"
tasks:
# --- Infrastructure ---
infra:up:
desc: Start Traefik (dev config via docker-compose.override.yml)
cmds:
- docker compose up -d traefik
infra:down:
desc: Stop all infrastructure
cmds:
- docker compose down
infra:reset:
desc: Reset infrastructure (delete volumes and restart)
cmds:
- docker compose down -v
# --- Install ---
install:tui:
desc: Install TUI as 'deeploy' binary
cmds:
- go build -o $(go env GOPATH)/bin/deeploy ./cmd/tui
# --- Dev ---
dev:tui:
desc: TUI client
cmds:
- DEBUG=1 go run ./cmd/tui
dev:tui:debug:
desc: Debug TUI (start, then attach in Neovim with <leader>dc, stop with task dev:tui:debug:stop)
cmds:
- tmux new-window -n debug 'dlv debug ./cmd/tui --headless --listen=:43000'
dev:tui:debug:stop:
desc: Stop TUI debug session
cmds:
- tmux kill-window -t debug
dev:server:
desc: Start dev server (SQLite as default)
deps: [infra:up]
cmds:
- task --parallel tailwind templ:server
dev:docs:
desc: Docs website
cmds:
- task --parallel tailwind templ:docs
tailwind:
cmds:
- "{{.TAILWIND_CMD}} -i ./internal/shared/assets/css/input.css -o ./internal/shared/assets/css/output.css --watch"
templ:server:
cmds:
- go tool templ generate --watch --proxy="http://localhost:8090" --cmd="go run ./cmd/server" --open-browser=false
templ:docs:
cmds:
- go tool templ generate --watch --proxy="http://localhost:8090" --cmd="go run ./cmd/docs" --open-browser=false
dev:all:
desc: Run server + docs (ports 8090 + 8091)
cmds:
- task --parallel dev:server dev:docs