feat: introduce Taskfile automation for build and deployment

This commit is contained in:
Prad N
2025-03-05 19:22:04 -05:00
parent fcc915a115
commit 77bbf6bba7
13 changed files with 427 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: "3"
vars:
GOPATH:
sh: go env GOPATH
OS:
sh: uname -s
ARCH:
sh: uname -m
tasks:
install-go:
desc: Install go dependencies
silent: true
vars:
DEPS:
[
"github.com/apple/pkl-go/cmd/pkl-gen-go@latest",
"github.com/sqlc-dev/sqlc/cmd/sqlc@latest",
"github.com/goreleaser/goreleaser/v2@latest",
"github.com/a-h/templ/cmd/templ@latest",
]
cmds:
- for: { var: DEPS }
cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}}