Skip to content

Commit cd9ae5c

Browse files
committed
chore: standardize rc tooling and docs
1 parent 32a6633 commit cd9ae5c

5 files changed

Lines changed: 48 additions & 30 deletions

File tree

.dumirc.ts

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

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

77
export default defineConfig({
88
themeConfig: {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ export default () => (
6666

6767
## Examples
6868

69-
Run the examples locally:
69+
Run the local dumi site:
7070

7171
```bash
7272
npm install
7373
npm start
7474
```
7575

76-
Then open the dumi dev server in your browser.
76+
Then open `http://localhost:8000`.
7777

7878
## API
7979

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ export default () => (
6666

6767
## 示例
6868

69-
本地运行示例
69+
运行本地 dumi 站点
7070

7171
```bash
7272
npm install
7373
npm start
7474
```
7575

76-
然后在浏览器中打开 dumi 开发服务地址
76+
然后打开 `http://localhost:8000`
7777

7878
## API
7979

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,29 @@
5353
"clsx": "^2.1.1"
5454
},
5555
"devDependencies": {
56-
"@rc-component/father-plugin": "^2.0.2",
57-
"@rc-component/np": "^1.0.3",
58-
"@testing-library/jest-dom": "^6.1.5",
59-
"@testing-library/react": "^16.0.0",
60-
"@types/jest": "^30.0.0",
61-
"@types/node": "^24.7.1",
62-
"@types/react": "^18.2.14",
56+
"@rc-component/father-plugin": "^2.2.0",
57+
"@rc-component/np": "^1.0.4",
58+
"@testing-library/jest-dom": "^6.9.1",
59+
"@testing-library/react": "^15.0.7",
60+
"@types/jest": "^29.5.14",
61+
"@types/node": "^26.0.1",
62+
"@types/react": "^18.3.31",
6363
"@types/react-dom": "^18.3.7",
64-
"@types/warning": "^3.0.0",
64+
"@types/warning": "^3.0.4",
6565
"@umijs/fabric": "^4.0.1",
66-
"cross-env": "^7.0.0",
67-
"dumi": "^2.1.17",
68-
"eslint": "^8.55.0",
69-
"father": "^4.0.0",
70-
"gh-pages": "^6.1.0",
71-
"husky": "^9.1.6",
72-
"less": "^4.1.3",
73-
"lint-staged": "^16.2.4",
74-
"prettier": "^3.3.3",
75-
"rc-test": "^7.0.14",
66+
"cross-env": "^10.1.0",
67+
"dumi": "^2.4.35",
68+
"eslint": "^8.57.1",
69+
"father": "^4.6.23",
70+
"gh-pages": "^6.3.0",
71+
"husky": "^9.1.7",
72+
"less": "^4.6.7",
73+
"lint-staged": "^16.4.0",
74+
"prettier": "^3.9.0",
75+
"rc-test": "^7.1.3",
7676
"react": "^18.3.1",
7777
"react-dom": "^18.3.1",
78-
"typescript": "^5.1.6"
78+
"typescript": "^5.9.3"
7979
},
8080
"peerDependencies": {
8181
"react": ">=16.9.0",

tsconfig.json

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

0 commit comments

Comments
 (0)