https://github.com/block/devkit
Universal build tool that detects project build systems and runs build, test, lint, and format operations against changed files.
https://github.com/block/devkit
Last synced: 19 days ago
JSON representation
Universal build tool that detects project build systems and runs build, test, lint, and format operations against changed files.
- Host: GitHub
- URL: https://github.com/block/devkit
- Owner: block
- License: apache-2.0
- Created: 2026-02-25T20:41:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-02T19:45:36.000Z (5 months ago)
- Last Synced: 2026-06-05T01:22:18.298Z (about 2 months ago)
- Language: Rust
- Size: 36.1 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
- Governance: GOVERNANCE.md
Awesome Lists containing this project
README
# kit
Universal build tool that detects project build systems and runs build, test, lint, and format operations against changed files.
`kit` auto-detects the build system in your repo and operates only on targets affected by your current branch, so you don't have to remember the right commands or wait for a full build.
## Usage
```
kit build # build targets affected by changes on your branch
kit test # test affected targets
kit lint # lint affected targets
kit fmt # format changed files
kit detect # print the detected build system
```
You can also pass specific directories:
```
kit build src/api src/db
kit fmt src/api/handler.rs
```
### Options
| Flag | Description |
|------|-------------|
| `--base ` | Base branch to diff against (default: `main`) |
| `--repo ` | Repository root (auto-detected if not set) |
## Supported backends
| Backend | Detection |
|---------|-----------|
| Bazel | `BUILD` or `BUILD.bazel` files |
| pnpm | `pnpm-lock.yaml` |
| Yarn | `yarn.lock` |
| Go | `go.mod` |
## Install
```
hermit install kit
```
Or build from source:
```
cargo install --path .
```