panel/Taskfile.yml

35 lines
No EOL
971 B
YAML

version: 3
tasks:
run:
cmds:
- air --build.include_ext "go,css,ts,templ"
tool-install:
desc: Install needed CLI tools
cmds:
- go install github.com/a-h/templ/cmd/templ@latest
- go install github.com/spf13/cobra-cli@latest
- go install github.com/air-verse/air@latest
- go get
- bun install
tool-upgrade:
desc: Upgrade CLI tools
cmds:
- go install github.com/a-h/templ/cmd/templ@latest
- go install github.com/spf13/cobra-cli@latest
- go install github.com/air-verse/air@latest
make-handler:
desc: Generates a handler
cmds:
- go run -tags dev *.go generate handler
make-migration:
desc: Generates a migration
cmds:
- go run -tags dev *.go generate migration
cloc:
desc: Lines of Code of project (for fun)
cmds:
- cloc --exclude-dir=node_modules,dist,playwright-report,.git,build,.idea,.vscode --exclude-ext=md --not-match-f='.*_templ\.go' .