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

GitHub - rstackjs/rstack-examples: Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.

Repository navigation

rstack-examples
Public

About

Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.

Topics

rsbuild rsdoctor rspack rspress

Resources

Readme MIT license Activity Custom properties

Stars

169 stars

Watchers

8 watching

Forks

48 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


529 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.agents/ skills .agents/ skills    
.github .github    
.rstack/ hooks .rstack/ hooks    
.vscode .vscode    
rsbuild rsbuild    
rsdoctor rsdoctor    
rslib rslib    
rspack rspack    
rspress rspress    
rstest rstest    
.gitignore .gitignore    
.npmrc .npmrc    
.nvmrc .nvmrc    
AGENTS.md AGENTS.md    
LICENSE LICENSE    
README.md README.md    
package.json package.json    
pnpm-lock.yaml pnpm-lock.yaml    
pnpm-workspace.yaml pnpm-workspace.yaml    
rstack.config.ts rstack.config.ts    
taze.config.ts taze.config.ts    
tsconfig.base.json tsconfig.base.json    

Repository files navigation

Rstack Examples

This repository contains comprehensive examples that demonstrate the Rstack ecosystem tools, including Rspack, Rsbuild, Rspress, and Rsdoctor. These examples showcase common implementation patterns and best practices to help developers leverage the full potential of the Rstack toolchain.

The main branch contains examples for Rspack/Rsbuild v2. For Rspack/Rsbuild 1.x examples, please check the v1.x branch.

List of Examples

Rspack Examples Document
Rsbuild Examples Document
Rspress Examples Document
Rsdoctor Examples Document
Rslib Examples Document
Rstest Examples Document

How to Use

Clone single example

To clone a single example, use giget to download a sub-directory from the current repository.

For example, to clone the /rspack/basic example, run the following command:

# Clone the basic example
npx giget gh:rstackjs/rstack-examples/rspack/basic my-app

# Enter the my-app example directory
cd my-app

# Install the dependencies
pnpm i

The second argument is the output directory. Pass it explicitly so the example is created with a clear local folder name.

You can clone any other example by replacing the path and output directory:

# Clone the Rsbuild React example
npx giget gh:rstackjs/rstack-examples/rsbuild/react my-app

# Clone the Rslib React example
npx giget gh:rstackjs/rstack-examples/rslib/react-basic my-lib

Clone all examples

To try all examples, you can clone the current repository to your local.

  1. First, clone the current repository to your local:
git clone git@github.com:rstackjs/rstack-examples.git
  1. Then, choose the example you need, such as the Rsbuild react example:
cd rsbuild/react
  1. Install the dependencies using pnpm or other package manager, then start the project:
# Use corepack to enable pnpm
corepack enable
pnpm i
pnpm run dev
  1. You can fork the current project or copy the code from the current project to use it.

About

Examples of Rstack, including Rspack, Rsbuild, Rspress, Rsdoctor.

Topics

rsbuild rsdoctor rspack rspress

Resources

Readme MIT license Activity Custom properties

Stars

169 stars

Watchers

8 watching

Forks

48 forks Report repository

Used by

Contributors

Languages