mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feat: introduce Taskfile automation for build and deployment
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
GOPATH:
|
||||
sh: go env GOPATH
|
||||
BIN_DIR: "{{.GOPATH}}/bin"
|
||||
BINARY: "{{.BIN_DIR}}/hway"
|
||||
OS:
|
||||
sh: uname -s
|
||||
ARCH:
|
||||
sh: uname -m
|
||||
|
||||
tasks:
|
||||
proto:
|
||||
desc: Generate proto files
|
||||
silent: true
|
||||
cmd: gum spin --spinner dot --title "Generating Protobufs..." -- make proto-gen
|
||||
|
||||
sqlc:
|
||||
desc: Generate SQLC files
|
||||
silent: true
|
||||
cmds:
|
||||
- gum spin --spinner dot --title "Generating SQLC..." -- sqlc generate -f internal/database/sqlc.yaml
|
||||
|
||||
templ:
|
||||
desc: Generate templ files
|
||||
silent: true
|
||||
cmd: gum spin --spinner dot --title "Generating Templ..." -- templ generate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user