2024-11-03 21:46:46 +01:00
|
|
|
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:
|
2024-12-20 23:29:45 +01:00
|
|
|
- cloc --exclude-dir=node_modules,dist,playwright-report,.git,build,.idea,.vscode --exclude-ext=md,svg,toml,yaml,yml,json --not-match-f='.*_templ\.go' .
|