Skip to content

Repository files navigation

Rstack CLI

discord channel npm version downloads node version license

Rstack CLI is a unified local CLI for web development.

It provides one entry point for Rsbuild, Rslib, Rstest, Rslint, and Rspress, with built-in formatting support via Oxfmt and staged-file task support via lint-staged.

It fits into your existing workflow instead of taking it over. Use it alongside pnpm, Turborepo, Nx, Bun, or whatever already works for your project.

Features

  • Unified local CLI: run Rstack tools through a single rs command
  • Single configuration: configure all tools from one configuration file

Usage

Install rstack in your project and call it from package scripts:

# npm
npm add -D rstack
# pnpm
pnpm add -D rstack
# yarn
yarn add -D rstack
# bun
bun add -d rstack
{
  "scripts": {
    "dev": "rs dev",
    "build": "rs build",
    "preview": "rs preview",
    "lib": "rs lib",
    "test": "rs test",
    "staged": "rs staged"
  }
}

Then run the scripts with your preferred package manager:

pnpm dev
pnpm build
pnpm preview
pnpm lib
pnpm test

Credits

Rstack CLI is inspired by:

License

MIT.

About

Unified toolchain for shipping JavaScript faster. Powered by the Rspack ecosystem.

Topics

Resources

Stars

22 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages