Skip to content

Commit 11813d7

Browse files
committed
chore: standardize rc tooling and docs
1 parent d2b1161 commit 11813d7

5 files changed

Lines changed: 48 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 ? '/input/' : '/';
4-
const publicPath = process.env.GH_PAGES ? '/input/' : '/';
4+
const publicPath = basePath;
55

66
export default defineConfig({
77
mfsu: false,

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ export default () => <TextArea autoSize showCount maxLength={100} />;
4949

5050
## Examples
5151

52-
Run the examples locally:
52+
Run the local dumi site:
5353

5454
```bash
5555
npm install
5656
npm start
5757
```
5858

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

6161
## API
6262

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ export default () => <TextArea autoSize showCount maxLength={100} />;
4949

5050
## 示例
5151

52-
本地运行示例
52+
运行本地 dumi 站点
5353

5454
```bash
5555
npm install
5656
npm start
5757
```
5858

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

6161
## API
6262

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,28 @@
5050
},
5151
"devDependencies": {
5252
"@rc-component/father-plugin": "^2.2.0",
53-
"@rc-component/np": "^1.0.3",
54-
"@testing-library/jest-dom": "^6.6.3",
55-
"@testing-library/react": "^16.0.1",
56-
"@testing-library/user-event": "^14.0.0-beta",
57-
"@types/jest": "^30.0.0",
58-
"@types/node": "^25.0.3",
59-
"@types/react": "^19.0.0",
60-
"@types/react-dom": "^19.0.1",
61-
"@umijs/fabric": "^4.0.0",
62-
"cross-env": "^7.0.0",
63-
"dumi": "^2.1.14",
64-
"eslint": "^8.0.0",
65-
"father": "^4.3.7",
66-
"gh-pages": "^6.2.0",
53+
"@rc-component/np": "^1.0.4",
54+
"@testing-library/jest-dom": "^6.9.1",
55+
"@testing-library/react": "^15.0.7",
56+
"@testing-library/user-event": "14.5.2",
57+
"@types/jest": "^29.5.14",
58+
"@types/node": "^26.0.1",
59+
"@types/react": "^18.3.31",
60+
"@types/react-dom": "^18.3.7",
61+
"@umijs/fabric": "^4.0.1",
62+
"cross-env": "^10.1.0",
63+
"dumi": "^2.4.35",
64+
"eslint": "^8.57.1",
65+
"father": "^4.6.23",
66+
"gh-pages": "^6.3.0",
6767
"husky": "^9.1.7",
68-
"less": "^4.2.1",
69-
"lint-staged": "^16.2.0",
70-
"prettier": "^3.4.2",
71-
"rc-test": "^7.0.15",
72-
"react": "^18.0.0",
73-
"react-dom": "^18.0.0",
74-
"typescript": "^5.7.2"
68+
"less": "^4.6.7",
69+
"lint-staged": "^16.4.0",
70+
"prettier": "^3.9.0",
71+
"rc-test": "^7.1.3",
72+
"react": "^18.3.1",
73+
"react-dom": "^18.3.1",
74+
"typescript": "^5.9.3"
7575
},
7676
"peerDependencies": {
7777
"react": ">=16.0.0",

tsconfig.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"module": "ESNext",
55
"moduleResolution": "node",
66
"baseUrl": "./",
7-
"lib": ["dom", "es2017", "es2022", "esnext"],
7+
"lib": [
8+
"dom",
9+
"es2017",
10+
"es2022",
11+
"esnext"
12+
],
813
"jsx": "react",
914
"strict": true,
1015
"esModuleInterop": true,
@@ -13,10 +18,21 @@
1318
"skipLibCheck": true,
1419
"declaration": true,
1520
"paths": {
16-
"@/*": ["src/*"],
17-
"@@/*": [".dumi/tmp/*"],
18-
"@rc-component/input": ["src/index.tsx"]
19-
}
21+
"@/*": [
22+
"src/*"
23+
],
24+
"@@/*": [
25+
".dumi/tmp/*"
26+
],
27+
"@rc-component/input": [
28+
"src/index.tsx"
29+
]
30+
},
31+
"ignoreDeprecations": "5.0"
2032
},
21-
"include": [".dumirc.ts", "**/*.ts", "**/*.tsx"]
33+
"include": [
34+
".dumirc.ts",
35+
"**/*.ts",
36+
"**/*.tsx"
37+
]
2238
}

0 commit comments

Comments
 (0)