rano/taskfile.yml
Ankit Patial 26a00c9f7c working on auth.
mailer, basic setup with html template and a dev treansport
2024-11-15 21:42:15 +05:30

66 lines
1.2 KiB
YAML

version: '3'
env:
ENV: development
dotenv: ['.env.{{.ENV}}']
tasks:
install:
desc: install packages
cmds:
- deno install --allow-scripts=npm:@sveltejs/kit
start-graph:
desc: run graph server
cmds:
- cmd: go run ./graph/server
start-web:
desc: run web in dev mode
cmd: deno task dev
gen:
desc: use go generate, for graph files
preconditions:
- go mod tidy
cmds:
- task: graph-gen
- task: ent-gen
vuln-check:
desc: perform go vuln check
cmds:
- govulncheck -show verbose ./...
graph-gen:
desc: graph gen
cmds:
- go mod tidy
- go generate ./graph
graph-codegen:
desc: generate graph types
cmds:
- cmd: deno task codegen
ent-new:
desc: create new db Emtity
cmd: cd ./db && go run -mod=mod entgo.io/ent/cmd/ent new {{.name}}
ent-gen:
desc: genertate from ent schema
cmds:
- go generate ./db/ent
migrate-new:
desc: create a new sql migration file
cmds:
- migrate create -ext sql -dir ./db/migrations -seq {{.name}}
migrate-up:
desc: apply automatically migration using Ent schema
cmds:
- task: ent-gen
- go run ./cmd/migrate-up