Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,34 @@ This repository contains comprehensive examples that demonstrate the Rstack ecos

### Clone single example

To clone a single example, you can use the [gitpick](https://github.com/nrjdalal/gitpick) to clone a sub-directory from the current repository.
To clone a single example, use [giget](https://github.com/unjs/giget) to download a sub-directory from the current repository.

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

```bash
# Clone the basic example
npx gitpick https://github.com/rstackjs/rstack-examples/tree/main/rspack/basic
npx giget gh:rstackjs/rstack-examples/rspack/basic my-app
Comment thread
chenjiahan marked this conversation as resolved.

# Enter the basic example directory
cd basic
# 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:

```bash
# 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.
Expand Down
Loading