Skip to content

Commit dc8e8d6

Browse files
authored
chore(build): replace npm with rnr task runner (#194)
1 parent 003b4f4 commit dc8e8d6

15 files changed

Lines changed: 137 additions & 1301 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ dist/
55
*.so
66
*.dylib
77

8+
# But allow rnr binaries (they should be committed)
9+
!.rnr/bin/*
10+
811
# Test binary, built with `go test -c`
912
*.test
1013

.husky/commit-msg

Lines changed: 0 additions & 1 deletion
This file was deleted.

.rnr/bin/rnr-linux-amd64

2.56 MB
Binary file not shown.

.rnr/bin/rnr-macos-amd64

2.18 MB
Binary file not shown.

.rnr/bin/rnr-macos-arm64

1.88 MB
Binary file not shown.

.rnr/bin/rnr-windows-amd64.exe

2.17 MB
Binary file not shown.

.rnr/bin/rnr-windows-arm64.exe

1.92 MB
Binary file not shown.

.rnr/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 0.1.0
2+
platforms:
3+
- linux-amd64
4+
- macos-amd64
5+
- macos-arm64
6+
- windows-amd64
7+
- windows-arm64

CLAUDE.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Guidance for Claude Code when working with the dtvem codebase.
2424
5. **Conventional commits** - Format: `type(scope): description`
2525
6. **GitHub Issues for TODOs** - Use `gh` CLI to manage issues, no local TODO files. Use conventional commit format for issue titles
2626
7. **Pull Requests** - Use the conventional commit format for PR titles as you do for commits
27-
8. **Run validation before commits** - Run `npm run check` (format, lint, test) before committing and pushing
27+
8. **Run validation before commits** - Run `./rnr check` (format, lint, test) before committing and pushing
2828
9. **Working an issue** - When working an issue, always create a new branch from an updated main branch
2929
10. **Branch Names** - Always use the conventional commit `type` from the issue title as the first prefix, and the `scope` as the second, then a very short description, example `feat/ci/integration-tests`
3030
11. **Check branch status before pushing** - ALWAYS verify the remote tracking branch still exists before pushing. If a PR was merged/deleted, create a new branch from main instead of trying to push to the old one.
@@ -35,7 +35,20 @@ Guidance for Claude Code when working with the dtvem codebase.
3535

3636
## Quick Reference
3737

38-
### Build Commands
38+
### Task Runner (rnr)
39+
40+
```bash
41+
./rnr --list # List all available tasks
42+
./rnr check # Format, lint, and test
43+
./rnr build # Build both CLI and shim
44+
./rnr test # Run tests
45+
./rnr format # Format code
46+
./rnr lint # Run linter
47+
./rnr clean # Remove build artifacts
48+
./rnr deploy-local # Build and deploy to local installation
49+
```
50+
51+
### Build Commands (raw)
3952

4053
```bash
4154
# Build executables

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,17 @@ See [Getting Started](https://dtvem.io/docs/user-guide/getting-started) for more
9191
Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for:
9292

9393
- Setting up your development environment
94-
- npm scripts for building and testing
94+
- Task runner commands for building and testing
9595
- Commit conventions and PR guidelines
9696
- CI/CD workflows and release process
9797
- Adding new runtime providers
9898

9999
### Quick Setup
100100

101101
```bash
102-
# First, install dtvem (see Installation section above)
103-
# Then clone and set up the development environment:
104102
git clone https://github.com/CodingWithCalvin/dtvem.cli.git
105-
cd dtvem
106-
dtvem install # Install Node.js for git hooks
107-
npm install # Set up dev dependencies
108-
npm run check # Run format, lint, and tests
103+
cd dtvem.cli
104+
./rnr check # Run format, lint, and tests
109105
```
110106

111107
Looking for something to work on? Check out [good first issues](https://github.com/CodingWithCalvin/dtvem.cli/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).

0 commit comments

Comments
 (0)