2024-12-08 01:30:07 +00:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
2024-12-08 11:22:35 +00:00
|
|
|
vars:
|
|
|
|
VERSION: 0.0.0
|
|
|
|
|
2024-12-08 01:30:07 +00:00
|
|
|
tasks:
|
|
|
|
docs:
|
|
|
|
cmds:
|
|
|
|
- swag i --parseDependency --dir api
|
2024-12-08 01:48:48 +00:00
|
|
|
silent: false
|
|
|
|
test:
|
|
|
|
cmds:
|
|
|
|
- go mod tidy
|
|
|
|
- go test -v ./...
|
|
|
|
silent: false
|
2024-12-08 11:22:35 +00:00
|
|
|
build:
|
|
|
|
cmds:
|
|
|
|
- go mod tidy
|
2024-12-08 16:30:36 +00:00
|
|
|
- mkdir -p bin
|
2024-12-11 00:05:45 +00:00
|
|
|
- env CGO_ENABLED=0 go build -o bin/lobby2-{{ .VERSION }}-linux-amd64 cli/*.go
|