upd task file to use go tool templ

This commit is contained in:
Alex Bozhenko 2025-04-11 16:39:25 -07:00
parent 13fdb26f9e
commit 6734c9cd42
1 changed files with 12 additions and 5 deletions

View File

@ -10,11 +10,18 @@ vars:
tasks: tasks:
tools: tools:
platforms: [windows, linux, darwin/arm64, darwin/amd64, openbsd, dragonfly, freebsd, netbsd] platforms:
[
windows,
linux,
darwin/arm64,
darwin/amd64,
openbsd,
dragonfly,
freebsd,
netbsd,
]
cmds: cmds:
- go install github.com/go-task/task/v3/cmd/task@latest
- go install github.com/a-h/templ/cmd/templ@latest
- platforms: [linux/amd64] - platforms: [linux/amd64]
cmd: test -f site/tailwindcli || wget -O site/tailwindcli https://github.com/dobicinaitis/tailwind-cli-extra/releases/download/v1.7.21/tailwindcss-extra-linux-x64 cmd: test -f site/tailwindcli || wget -O site/tailwindcli https://github.com/dobicinaitis/tailwind-cli-extra/releases/download/v1.7.21/tailwindcss-extra-linux-x64
@ -143,7 +150,7 @@ tasks:
sources: sources:
- "**/*.templ" - "**/*.templ"
cmds: cmds:
- templ generate . - go tool templ generate .
kill: kill:
method: none method: none