klefki/.mise.toml

66 lines
1.7 KiB
TOML
Raw Normal View History

2025-02-13 17:43:28 -08:00
# Default versions of tools, to update these, set [tools.override]
[tools]
bun = "latest"
git-cliff = "latest"
golang = "1.24.1"
golangci-lint = "1.64.7"
2025-02-13 17:43:28 -08:00
goreleaser = "latest"
"go:gotest.tools/gotestsum" = "1.12.0"
"go:golang.org/x/tools/cmd/goimports" = "latest"
"go:mvdan.cc/sh/v3/cmd/shfmt" = "latest"
"go:github.com/thenativeweb/get-next-version" = "latest"
2025-02-22 18:39:14 -08:00
# gRPC
"aqua:bufbuild/buf" = "1.50.0"
"go:google.golang.org/protobuf/cmd/protoc-gen-go" = "1.36.5"
"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "1.5.1"
"go:github.com/fullstorydev/grpcui/cmd/grpcui" = "1.4.2"
"aqua:protocolbuffers/protobuf/protoc" = "24.3"
2025-02-13 17:43:28 -08:00
[tasks.build]
description = "Build a binary for the current platform/architecture"
run = "go build -trimpath -o ./bin/ -v ./cmd/..."
[tasks.changelog]
description = "Generate a changelog for the current version"
outputs = ["CHANGELOG.md"]
run = ["git-cliff --config .cliff.toml --output CHANGELOG.md"]
[tasks.fmt]
alias = "format"
description = "Format code"
run = [
"go mod tidy",
"gofmt -s -w .",
"goimports -w .",
"shfmt -w .",
"bun node_modules/.bin/prettier --write '**/*.{json,yaml,yml,md,jsonschema.json}'",
"buf format -w",
2025-02-13 17:43:28 -08:00
]
[tasks.lint]
description = "Run linters"
run = "golangci-lint run"
[tasks.next-version]
description = """Get the version number that would be released if a release was ran right now.
Pass --rc to get the next release candidate version.
"""
run = ["./.github/scripts/get-next-version.sh"]
[tasks.test]
description = "Run tests"
run = "gotestsum"
## <<Stencil::Block(custom)>>
2025-02-22 18:39:14 -08:00
[tasks.dev]
description = "Live reload target (use with `mise run watch`)"
depends = ["build"]
run = ["./bin/klefki"]
2025-02-13 17:43:28 -08:00
2025-02-22 18:39:14 -08:00
[tasks.watch]
description = "Watch for changes"
run = ["mise watch -t dev --restart"]
2025-02-13 17:43:28 -08:00
## <</Stencil::Block>>