-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mise.toml
44 lines (37 loc) · 1 KB
/
.mise.toml
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
33
34
35
36
37
38
39
40
41
42
43
44
# Default versions of tools, to update these, set [tools.override]
[tools]
golang = "1.22"
shfmt = "3"
golangci-lint = "1.56"
goreleaser = "latest"
"go:gotest.tools/gotestsum" = "v1.11.0"
"go:golang.org/x/tools/cmd/goimports" = "latest"
[tasks.build]
description = "Build a binary for the current platform/architecture"
sources = ["cmd/**/*.go", "internal/**/*.go", "go.mod", "go.sum"]
outputs = ["./bin/binhost"]
run = "go build -trimpath -o ./bin/ -v ./cmd/..."
[tasks.test]
description = "Run tests"
run = "gotestsum"
[tasks.lint]
description = "Run linters"
run = "golangci-lint run"
[tasks.fmt]
alias = "format"
description = "Format code"
run = [
"go mod tidy",
"gofmt -s -w .",
"goimports -w .",
"shfmt -w -i 2 -ci -sr .",
]
## <<Stencil::Block(custom)>>
[tasks.dev]
description = "Live reload target (use with `mise run watch`)"
depends = ["build"]
run = ["ENV=development ./bin/binhost"]
[tasks.watch]
description = "Watch for changes"
run = ["mise watch -t dev --clear --restart"]
## <</Stencil::Block>>