Skip to content

Commit 53baf62

Browse files
authored
feat: add Rslib examples (#352)
1 parent a185a06 commit 53baf62

File tree

234 files changed

+9136
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+9136
-359
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
schedule:
5-
- cron: '0 1 * * *'
5+
- cron: "0 1 * * *"
66

77
workflow_dispatch:
88

@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Node.js
2727
uses: actions/setup-node@v5
2828
with:
29-
node-version-file: '.nvmrc'
29+
node-version-file: ".nvmrc"
3030

3131
- name: Install dependencies
3232
run: pnpm install
@@ -39,6 +39,10 @@ jobs:
3939
run: |
4040
pnpm build:rsbuild
4141
42+
- name: Build Rslib
43+
run: |
44+
pnpm build:rslib
45+
4246
- name: Build Rspress
4347
run: |
4448
pnpm build:rspress

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ This repository contains comprehensive examples that demonstrate the Rstack ecos
44

55
## List of Examples
66

7-
| [Rspack](https://github.com/web-infra-dev/rspack) | <a href="https://github.com/web-infra-dev/rspack" target="blank"><img src="https://assets.rspack.dev/rspack/rspack-banner.png" width="400" /></a> | [Examples](./rspack) | [Document](https://rspack.dev/) |
8-
| :---------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------: | :----------------------------------: |
9-
| [Rsbuild](https://github.com/web-infra-dev/rsbuild) | <a href="https://github.com/web-infra-dev/rsbuild" target="blank"><img src="https://assets.rspack.dev/rsbuild/rsbuild-banner.png" width="400" /></a> | [Examples](./rsbuild) | [Document](https://rsbuild.dev/) |
10-
| [Rspress](https://github.com/web-infra-dev/rspress) | <a href="https://github.com/web-infra-dev/rspress" target="blank"><img src="https://assets.rspack.dev/rspress/rspress-banner.png" width="400" /></a> | [Examples](./rspress/) | [Document](https://rspress.dev/) |
11-
| [Rsdoctor](https://github.com/web-infra-dev/rsdoctor) | <a href="https://github.com/web-infra-dev/rsdoctor" target="blank"><img src="https://assets.rspack.dev/rsdoctor/rsdoctor-banner.png" width="400" /></a> | [Examples](./rsdoctor/) | [Document](https://rsdoctor.dev/) |
12-
| [Rslib](https://github.com/web-infra-dev/rslib) | <a href="https://github.com/web-infra-dev/rslib" target="blank"><img src="https://assets.rspack.dev/rslib/rslib-banner.png" width="400" /></a> | [Examples](https://github.com/web-infra-dev/rslib/tree/main/examples) | [Document](https://lib.rsbuild.dev/) |
7+
| [Rspack](https://github.com/web-infra-dev/rspack) | <a href="https://github.com/web-infra-dev/rspack" target="blank"><img src="https://assets.rspack.dev/rspack/rspack-banner.png" width="400" /></a> | [Examples](./rspack) | [Document](https://rspack.dev/) |
8+
| :---------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------: | :----------------------------------: |
9+
| [Rsbuild](https://github.com/web-infra-dev/rsbuild) | <a href="https://github.com/web-infra-dev/rsbuild" target="blank"><img src="https://assets.rspack.dev/rsbuild/rsbuild-banner.png" width="400" /></a> | [Examples](./rsbuild) | [Document](https://rsbuild.dev/) |
10+
| [Rspress](https://github.com/web-infra-dev/rspress) | <a href="https://github.com/web-infra-dev/rspress" target="blank"><img src="https://assets.rspack.dev/rspress/rspress-banner.png" width="400" /></a> | [Examples](./rspress/) | [Document](https://rspress.dev/) |
11+
| [Rsdoctor](https://github.com/web-infra-dev/rsdoctor) | <a href="https://github.com/web-infra-dev/rsdoctor" target="blank"><img src="https://assets.rspack.dev/rsdoctor/rsdoctor-banner.png" width="400" /></a> | [Examples](./rsdoctor/) | [Document](https://rsdoctor.dev/) |
12+
| [Rslib](https://github.com/web-infra-dev/rslib) | <a href="https://github.com/web-infra-dev/rslib" target="blank"><img src="https://assets.rspack.dev/rslib/rslib-banner.png" width="400" /></a> | [Examples](./rslib) | [Document](https://lib.rsbuild.dev/) |
1313

1414
## How to Use
1515

biome.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"**/rsbuild/**",
1313
"**/rspress/**",
1414
"**/rsdoctor/**",
15+
"**/rslib/**",
1516
"!**/dist",
1617
"!**/dist-*",
1718
"!**/doc_build",
@@ -55,7 +56,10 @@
5556
"**/tsconfig-*.json"
5657
],
5758
"json": {
58-
"parser": { "allowComments": true, "allowTrailingCommas": true }
59+
"parser": {
60+
"allowComments": true,
61+
"allowTrailingCommas": true
62+
}
5963
}
6064
},
6165
{

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
"license": "MIT",
66
"scripts": {
77
"bump": "taze -l",
8-
"build": "npm run build:rspack && npm run build:rsbuild && npm run build:rspress && npm run build:rsdoctor",
8+
"build": "npm run build:rspack && npm run build:rsbuild && npm run build:rspress && npm run build:rsdoctor && npm run build:rslib",
99
"build:rsbuild": "pnpm --filter \"rsbuild-*\" build",
1010
"build:rsdoctor": "pnpm --filter \"rsdoctor-*\" build",
1111
"build:rspack": "pnpm --filter \"example-*\" build",
1212
"test:rspack": "pnpm --filter \"example-*\" test",
1313
"build:rspress": "pnpm --filter \"rspress-*\" build",
14+
"build:rslib": "pnpm --filter \"rslib-*\" build",
1415
"prepare": "husky",
15-
"sort-package-json": "npx sort-package-json \"rspack/*/package.json\" \"rsbuild/*/package.json\" \"rspress/*/package.json\" \"rsdoctor/*/package.json\""
16+
"sort-package-json": "npx sort-package-json \"rspack/*/package.json\" \"rsbuild/*/package.json\" \"rspress/*/package.json\" \"rsdoctor/*/package.json\" \"rslib/*/package.json\""
1617
},
1718
"lint-staged": {
1819
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
@@ -32,4 +33,4 @@
3233
"react-focus-lock": "2.13.6"
3334
}
3435
}
35-
}
36+
}

0 commit comments

Comments
 (0)