Requirements:
- Go (v1.22.0 or higher)
- Node.js (v20.11.1 or higher)
- pnpm (v8.15.3 or higher)
- Task (v3.34.1 or higher)
install dependencies:
task install
Note
You can discover all available tasks by running task -l
.
Here, we introduce the main tasks.
: linting
task lint
: formatting
task format
Some test mock code (internal/syncup/**/mock/mock_*.go
) and certain documents, such as the command reference (docs/reference/*.md
), are automatically generated.
For automatic generation, we use go generate
.
You can find hints about the content of automatic generation by looking for code comments that start with //go:generate
.
task generate
task test
: build executable binary only
task build
: build and archive executable binary
task archive
Warning
The specified version will be released, so double-check before executing.
The release task is available only on main branch.
NEXT_VERSION
environment variable is required and must follow Semantic Versioning.
git checkout main
NEXT_VERSION=vx.x.x task release