-
-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathTaskfile.yml
More file actions
78 lines (65 loc) · 2.15 KB
/
Copy pathTaskfile.yml
File metadata and controls
78 lines (65 loc) · 2.15 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
73
74
75
76
77
78
version: "3"
tasks:
# Development Tools
templ:
desc: Run templ with integrated server and hot reload
env:
# Rebases every self-referencing shadcn-templ.com URL (docs, llms.txt,
# sitemap, robots) onto the local origin, see shared.Rebase.
BASE_URL: http://localhost:8090
cmds:
- go tool templ generate --watch --proxy="http://localhost:8090" --cmd="go run ./cmd/docs/main.go" --open-browser=false
shiki-highlighter:
desc: Start shiki syntax highlighter service
dir: shiki
cmds:
- npm start
tailwind-clean:
desc: Clean tailwind output
cmds:
- "tailwindcss -i ./assets/css/globals.css -o ./assets/css/output.css --clean"
tailwind-watch:
desc: Run tailwindcss in watch mode
cmds:
- "tailwindcss -i ./assets/css/globals.css -o ./assets/css/output.css --watch"
kill-ports:
desc: Kill leftover processes on the dev ports (8090 app, 7331 templ proxy, 3000 shiki)
cmds:
- lsof -ti:8090,7331,3000 | xargs kill -9 2>/dev/null || true
dev:
desc: Start development server with hot reload
deps:
- kill-ports
- tailwind-clean
cmds:
- task --parallel tailwind-watch templ shiki-highlighter
# Build & Validation
templ-generate:
desc: Compile templ files into Go
cmds:
- go tool templ generate
# Generators
generate-sitemap:
desc: Generate sitemap.xml
cmds:
- go run ./cmd/sitemap/main.go --baseurl="https://shadcn-templ.com" --output="./static/sitemap.xml"
generate-icons:
desc: Generate icon definitions
cmds:
- go run cmd/icongen/main.go
generate-llms:
desc: Generate llms.txt from registry.json
cmds:
- go run cmd/generate-llms/main.go
generate-style-classes:
desc: Generate assets/css/style-classes.txt (Tailwind scan candidates for the compiled docs previews) from the vendored style css
cmds:
- go run ./cmd/generate-style-classes
install-compinstall:
desc: Install compinstall tool
cmds:
- go install ./cmd/compinstall
install-shadcn-templ:
desc: Install shadcn-templ CLI from the current local checkout
cmds:
- go install ./cmd/shadcn-templ