Skip to content

Commit 10d85ce

Browse files
committed
chore: standardize rc tooling and docs
1 parent 985a928 commit 10d85ce

5 files changed

Lines changed: 49 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 ? '/rate/' : '/';
5-
const publicPath = process.env.GH_PAGES ? '/rate/' : '/';
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
@@ -52,13 +52,15 @@ export default () => (
5252

5353
## Examples
5454

55-
Run the examples locally:
55+
Run the local dumi site:
5656

5757
```bash
5858
npm install
5959
npm start
6060
```
6161

62+
Then open `http://localhost:8000`.
63+
6264
## API
6365

6466
### Rate

README.zh-CN.md

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

5353
## 示例
5454

55-
本地运行示例
55+
运行本地 dumi 站点
5656

5757
```bash
5858
npm install
5959
npm start
6060
```
6161

62+
然后打开 `http://localhost:8000`
63+
6264
## API
6365

6466
### Rate

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@
4646
},
4747
"devDependencies": {
4848
"@rc-component/father-plugin": "^2.2.0",
49-
"@rc-component/np": "^1.0.0",
49+
"@rc-component/np": "^1.0.4",
5050
"@rc-component/tooltip": "^1.2.1",
51-
"@testing-library/react": "^16.0.1",
52-
"@types/jest": "^29.5.1",
53-
"@types/node": "^24.5.2",
54-
"@types/react": "^18.0.0",
55-
"@types/react-dom": "^18.0.0",
56-
"@umijs/fabric": "^3.0.0",
57-
"cross-env": "^7.0.0",
58-
"dumi": "^2.1.2",
59-
"eslint": "^7.1.0",
60-
"father": "^4.0.0",
61-
"gh-pages": "^3.1.0",
62-
"less": "^3.0.0",
63-
"rc-test": "^7.0.15",
64-
"react": "^18.0.0",
65-
"react-dom": "^18.0.0",
66-
"typescript": "^5.0.4"
51+
"@testing-library/react": "^15.0.7",
52+
"@types/jest": "^29.5.14",
53+
"@types/node": "^26.0.1",
54+
"@types/react": "^18.3.31",
55+
"@types/react-dom": "^18.3.7",
56+
"@umijs/fabric": "^4.0.1",
57+
"cross-env": "^10.1.0",
58+
"dumi": "^2.4.35",
59+
"eslint": "^8.57.1",
60+
"father": "^4.6.23",
61+
"gh-pages": "^6.3.0",
62+
"less": "^4.6.7",
63+
"rc-test": "^7.1.3",
64+
"react": "^18.3.1",
65+
"react-dom": "^18.3.1",
66+
"typescript": "^5.9.3"
6767
},
6868
"peerDependencies": {
6969
"react": ">=16.9.0",

tsconfig.json

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

0 commit comments

Comments
 (0)