2 releases
0.1.2 | Dec 2, 2024 |
---|---|
0.1.1 | Dec 1, 2024 |
0.1.0 |
|
#142 in Build Utils
408 downloads per month
92KB
746 lines
Unified tooling for Node.js, integrating BiomeJS, Tsup, Vitest, and Release-It.
Features
- Rust-powered performance
- Tool-agnostic architecture
- Command customization
- Project templates
- Inherited CLI arguments
- Cross-platform support
Requirements
System
- Node.js >= 20.11.0
- Rust >= 1.80
Platforms
- macOS (x64, ARM)
- Linux (x64, ARM)
- Windows (x64, ARM)
Installation
macOS:
brew install xosnrdev/cargonode/cargonode
Rust:
cargo install cargonode
Additional package managers planned.
Usage
# Project
cargonode new my-project
cargonode init
# Operations
cargonode build # default: tsup
cargonode test # default: vitest
cargonode fmt # default: biome
cargonode check # default: biome
cargonode release # default: release-it
# Help
cargonode --help
cargonode build --help # displays tsup help
cargonode test run # runs vitest run
cargonode check --fix # runs biome check --fix
Configuration
Customize tools via cargonode.toml
:
[commands.format]
command = "eslint" # replace biome
args = ["--fix"]
[commands.release]
prechecks = ["test", "build"]
Precedence
- CLI Arguments
- Project Configuration
- Defaults
Support
License
MIT OR Apache-2.0
Dependencies
~11–21MB
~310K SLoC