mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 02:59:13 +00:00
build: add automated templ code generation for UI updates
This commit is contained in:
16
.github/taskfiles/taskfile.watch.yml
vendored
Normal file
16
.github/taskfiles/taskfile.watch.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user