Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

rspack-contrib/rstack-examples

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.

List of Examples

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

How to Use

Clone single example

To clone a single example, you can use the gitpick to clone a sub-directory from the current repository.

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

# Clone the basic example
npx gitpick https://github.com/rspack-contrib/rstack-examples/tree/main/rspack/basic

# Enter the basic example directory
cd basic

# Install the dependencies
pnpm i

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 [email protected]:rspack-contrib/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.