-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevbox.json
32 lines (32 loc) · 867 Bytes
/
devbox.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"packages": [
"postgresql",
"sqlc",
"go-task",
"docker",
"fish",
"golangci-lint",
"gcc",
"git",
"go@latest"
],
"shell": {
"init_hook": [
"echo 'Welcome to ThriveMind development environment'",
"set -gx PATH $PATH (go env GOPATH)/bin",
"set -gx GOFLAGS \"\"",
"command -v migrate >/dev/null 2>&1; or begin; set -gx GOFLAGS \"\"; go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest; end",
"command -v air >/dev/null 2>&1; or begin; set -gx GOFLAGS \"\"; go install github.com/cosmtrek/air@latest; end"
],
"scripts": {
"test": "go test ./...",
"lint": "golangci-lint run",
"dev": "air -c .air.toml",
"build": "go build -o bin/thrivemind ./cmd/api"
}
},
"env": {
"GO111MODULE": "on",
"CGO_ENABLED": "0"
}
}