build: add automated templ code generation for UI updates

This commit is contained in:
2025-05-30 17:52:06 -04:00
parent 3360495522
commit d18afa8989

16
.github/taskfiles/taskfile.watch.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
silent: true
vars:
GIT_ROOT:
sh: git rev-parse --show-toplevel
tasks:
templ:
dir: "{{.GIT_ROOT}}"
sources:
- internal/ui/**/*.templ
watch: true
cmds:
- templ generate