Skip to content

Commit c18bb90

Browse files
committed
chore: standardize rc tooling and docs
1 parent 5341593 commit c18bb90

5 files changed

Lines changed: 50 additions & 26 deletions

File tree

.dumirc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'dumi';
22
import path from 'path';
33

44
const basePath = process.env.GH_PAGES ? '/virtual-list/' : '/';
5-
const publicPath = process.env.GH_PAGES ? '/virtual-list/' : '/';
5+
const publicPath = basePath;
66

77
export default defineConfig({
88
alias: {

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ export default () => (
4747

4848
## Examples
4949

50-
Run the local dumi site to explore the examples:
50+
Run the local dumi site:
5151

5252
```bash
5353
npm install
5454
npm start
5555
```
5656

57+
Then open `http://localhost:8000`.
58+
5759
## API
5860

5961
### List

README.zh-CN.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ export default () => (
4747

4848
## 示例
4949

50-
运行本地 dumi 站点查看示例
50+
运行本地 dumi 站点
5151

5252
```bash
5353
npm install
5454
npm start
5555
```
5656

57+
然后打开 `http://localhost:8000`
58+
5759
## API
5860

5961
### List

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@
4747
"react-dom": ">=18.0.0"
4848
},
4949
"devDependencies": {
50-
"@rc-component/father-plugin": "^2.1.3",
50+
"@rc-component/father-plugin": "^2.2.0",
5151
"@rc-component/np": "^1.0.4",
52-
"@testing-library/jest-dom": "^5.17.0",
53-
"@testing-library/react": "^13.4.0",
54-
"@types/jest": "^30.0.0",
55-
"@types/node": "^24.10.1",
56-
"@types/react": "^18.0.8",
57-
"@types/react-dom": "^18.0.3",
58-
"@types/warning": "^3.0.0",
59-
"dumi": "^2.2.17",
60-
"eslint": "^8.56.0",
61-
"eslint-plugin-unicorn": "^55.0.0",
62-
"father": "^4.4.0",
63-
"glob": "^7.1.6",
52+
"@testing-library/jest-dom": "^6.9.1",
53+
"@testing-library/react": "^15.0.7",
54+
"@types/jest": "^29.5.14",
55+
"@types/node": "^26.0.1",
56+
"@types/react": "^18.3.31",
57+
"@types/react-dom": "^18.3.7",
58+
"@types/warning": "^3.0.4",
59+
"dumi": "^2.4.35",
60+
"eslint": "^8.57.1",
61+
"eslint-plugin-unicorn": "^56.0.1",
62+
"father": "^4.6.23",
63+
"glob": "^13.0.6",
6464
"rc-animate": "^2.9.1",
6565
"rc-test": "^7.1.3",
6666
"react": "^18.3.1",
6767
"react-dom": "^18.3.1",
68-
"typescript": "^5.0.0",
68+
"typescript": "^5.9.3",
6969
"cross-env": "^10.1.0",
7070
"gh-pages": "^6.3.0",
71-
"prettier": "^3.3.2"
71+
"prettier": "^3.9.0"
7272
},
7373
"dependencies": {
7474
"@babel/runtime": "^7.20.0",

tsconfig.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,33 @@
88
"skipLibCheck": true,
99
"esModuleInterop": true,
1010
"paths": {
11-
"@/*": ["src/*"],
12-
"@@/*": [".dumi/tmp/*"],
13-
"@rc-component/virtual-list": ["src/index.ts"],
14-
"@rc-component/virtual-list/es": ["src"],
15-
"@rc-component/virtual-list/es/*": ["src/*"]
16-
}
11+
"@/*": [
12+
"src/*"
13+
],
14+
"@@/*": [
15+
".dumi/tmp/*"
16+
],
17+
"@rc-component/virtual-list": [
18+
"src/index.ts"
19+
],
20+
"@rc-component/virtual-list/es": [
21+
"src"
22+
],
23+
"@rc-component/virtual-list/es/*": [
24+
"src/*"
25+
]
26+
},
27+
"ignoreDeprecations": "5.0"
1728
},
18-
"include": [".dumirc.ts", "src", "tests", "examples"],
19-
"exclude": ["docs-dist", "lib", "es"]
29+
"include": [
30+
".dumirc.ts",
31+
"src",
32+
"tests",
33+
"examples"
34+
],
35+
"exclude": [
36+
"docs-dist",
37+
"lib",
38+
"es"
39+
]
2040
}

0 commit comments

Comments
 (0)