Skip to content

Commit fe72437

Browse files
committed
chore: standardize rc tooling and docs
1 parent c1ad179 commit fe72437

5 files changed

Lines changed: 51 additions & 32 deletions

File tree

.dumirc.ts

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

33
const basePath = process.env.GH_PAGES ? '/pagination/' : '/';
4-
const publicPath = process.env.GH_PAGES ? '/pagination/' : '/';
4+
const publicPath = basePath;
55

66
export default defineConfig({
77
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],

README.md

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

6060
## Examples
6161

62-
Run the examples locally:
62+
Run the local dumi site:
6363

6464
```bash
6565
npm install
6666
npm start
6767
```
6868

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

7171
## API
7272

README.zh-CN.md

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

6060
## 示例
6161

62-
本地运行示例
62+
运行本地 dumi 站点
6363

6464
```bash
6565
npm install
6666
npm start
6767
```
6868

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

7171
## API
7272

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,30 @@
7272
},
7373
"devDependencies": {
7474
"@rc-component/father-plugin": "^2.2.0",
75-
"@rc-component/np": "^1.0.3",
76-
"@testing-library/jest-dom": "^6.1.5",
77-
"@testing-library/react": "^16.0.1",
78-
"@testing-library/user-event": "^14.5.2",
79-
"@types/jest": "^30.0.0",
80-
"@types/node": "^24.5.2",
81-
"@types/react": "^19.0.8",
82-
"@types/react-dom": "^19.0.3",
75+
"@rc-component/np": "^1.0.4",
76+
"@testing-library/jest-dom": "^6.9.1",
77+
"@testing-library/react": "^15.0.7",
78+
"@testing-library/user-event": "14.5.2",
79+
"@types/jest": "^29.5.14",
80+
"@types/node": "^26.0.1",
81+
"@types/react": "^18.3.31",
82+
"@types/react-dom": "^18.3.7",
8383
"@umijs/fabric": "^4.0.1",
84-
"cross-env": "^7.0.0",
85-
"dumi": "^2.1.2",
86-
"eslint": "^8.54.0",
87-
"father": "^4.0.0",
88-
"gh-pages": "^6.1.0",
89-
"glob": "^13.0.2",
90-
"husky": "^9.0.11",
84+
"cross-env": "^10.1.0",
85+
"dumi": "^2.4.35",
86+
"eslint": "^8.57.1",
87+
"father": "^4.6.23",
88+
"gh-pages": "^6.3.0",
89+
"glob": "^13.0.6",
90+
"husky": "^9.1.7",
9191
"identity-obj-proxy": "^3.0.0",
92-
"less": "^4.1.3",
93-
"lint-staged": "^17.0.7",
94-
"prettier": "^3.1.0",
92+
"less": "^4.6.7",
93+
"lint-staged": "^16.4.0",
94+
"prettier": "^3.9.0",
9595
"@rc-component/select": "^1.8.0",
96-
"rc-test": "^7.0.15",
97-
"react": "^19.0.0",
98-
"react-dom": "^19.0.0"
96+
"rc-test": "^7.1.3",
97+
"react": "^18.3.1",
98+
"react-dom": "^18.3.1"
9999
},
100100
"peerDependencies": {
101101
"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/pagination": ["src/index.ts"]
14-
}
11+
"@/*": [
12+
"src/*"
13+
],
14+
"@@/*": [
15+
".dumi/tmp/*"
16+
],
17+
"@rc-component/pagination": [
18+
"src/index.ts"
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)