40 lines
670 B
YAML
40 lines
670 B
YAML
version: '3'
|
|
|
|
env:
|
|
ENV: development
|
|
|
|
tasks:
|
|
gen:
|
|
desc: use go generate, for graph files
|
|
preconditions:
|
|
- go mod tidy
|
|
cmds:
|
|
- go generate ./graph
|
|
|
|
check:
|
|
desc: perform go vuln check
|
|
cmds:
|
|
- govulncheck -show verbose ./...
|
|
|
|
install:
|
|
desc: install packages
|
|
cmds:
|
|
- deno install --allow-scripts=npm:@sveltejs/kit
|
|
|
|
graph:
|
|
desc: run graph server
|
|
cmds:
|
|
- cmd: go run ./graph/server
|
|
|
|
codegen:
|
|
desc: generate graph types
|
|
dotenv: ['.env.{{.ENV}}']
|
|
cmds:
|
|
- cmd: deno task codegen
|
|
|
|
web:
|
|
desc: run web in dev mode
|
|
dotenv: ['.env.{{.ENV}}']
|
|
cmds:
|
|
- cmd: deno task dev
|