← Winnitude! Search  ·  Reader Mode (797 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 115 LINKS

GitHub - rstackjs/rstack-cli: Unified toolchain for shipping JavaScript faster. Powered by the Rspack ecosystem.

Repository navigation

rstack-cli
Public

About

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

rstack.rs

Topics

javascript rsbuild rslib rslint rspack rspress rstack rstest typescript

Resources

Readme MIT license Activity Custom properties

Stars

42 stars

Watchers

2 watching

Forks

3 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


760 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.agents/ skills .agents/ skills    
.cargo .cargo    
.github .github    
.rstack/ hooks .rstack/ hooks    
.vscode .vscode    
crates crates    
examples examples    
packages packages    
scripts scripts    
website website    
.gitattributes .gitattributes    
.gitignore .gitignore    
.node-version .node-version    
AGENTS.md AGENTS.md    
Cargo.lock Cargo.lock    
Cargo.toml Cargo.toml    
LICENSE LICENSE    
README.md README.md    
cspell.config.js cspell.config.js    
package.json package.json    
pnpm-lock.yaml pnpm-lock.yaml    
pnpm-workspace.yaml pnpm-workspace.yaml    
rstack.config.ts rstack.config.ts    
rust-toolchain.toml rust-toolchain.toml    

Repository files navigation

Rstack CLI

Rstack CLI brings the Rstack toolchain together for JavaScript development, with one CLI, one configuration, and one consistent workflow.

It also covers local development needs outside Rstack's scope, with Prettier formatting and lint-staged commands.

Command Description
rs dev Run the app dev server
rs build Build the app for production
rs preview Preview the app production build
rs test Run tests
rs lint Lint code
rs fmt Format code
rs check Run static checks, including lint and format
rs lib Build library
rs doc Serve or build docs
rs hooks Manage Git hooks
rs staged Run tasks on staged Git files

Rstack CLI fits into your existing project workflow. It does not replace your runtime, package manager, or task runner, such as pnpm , Bun , Turborepo , Nx , and Nub .

Current status

Rstack CLI is currently experimental and mainly used for internal validation. Its APIs, configuration, and usage may change as the project evolves.

Welcome to try it out and share feedback through issues and discussions!

Usage

  1. Install rstack in your project:
# pnpm
pnpm add -D rstack
# yarn
yarn add -D rstack
# npm
npm add -D rstack
# bun
bun add -d rstack
  1. Add scripts to your package.json:
{
  "scripts": {
    "dev": "rs dev",
    "build": "rs build",
    "preview": "rs preview",
    "test": "rs test",
    "check": "rs check --type-check",
    "lint": "rs lint",
    "lib": "rs lib",
    "doc": "rs doc",
    "format": "rs fmt",
    "prepare": "rs hooks"
  }
}

Run the scripts with your preferred package manager:

pnpm dev
pnpm build
pnpm preview
pnpm test
pnpm check
pnpm lint
pnpm lib
pnpm doc
pnpm format

Credits

Rstack CLI is inspired by:

Parts of the Git hook implementation are derived from Husky , and parts of the formatter runtime are derived from Prettier CLI .

See Third-Party Notices for complete attribution and license information.

License

MIT .

About

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

rstack.rs

Topics

javascript rsbuild rslib rslint rspack rspress rstack rstest typescript

Resources

Readme MIT license Activity Custom properties

Stars

42 stars

Watchers

2 watching

Forks

3 forks Report repository

Releases

Used by

Contributors

Languages