Skip to content

Commit 0a7f591

Browse files
committed
chore: standardize rc tooling and docs
1 parent 074de90 commit 0a7f591

5 files changed

Lines changed: 51 additions & 31 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 ? '/mutate-observer/' : '/';
5-
const publicPath = process.env.GH_PAGES ? '/mutate-observer/' : '/';
5+
const publicPath = basePath;
66

77
export default defineConfig({
88
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
@@ -64,14 +64,14 @@ export default ({ target }: { target: HTMLDivElement | null }) => {
6464

6565
## Examples
6666

67-
Run the examples locally:
67+
Run the local dumi site:
6868

6969
```bash
7070
npm install
7171
npm start
7272
```
7373

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

7676
## API
7777

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ export default ({ target }: { target: HTMLDivElement | null }) => {
6464

6565
## 示例
6666

67-
本地运行示例
67+
运行本地 dumi 站点
6868

6969
```bash
7070
npm install
7171
npm start
7272
```
7373

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

7676
## API
7777

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,27 @@
4848
},
4949
"devDependencies": {
5050
"@rc-component/father-plugin": "^2.2.0",
51-
"@rc-component/np": "^1.0.3",
52-
"@testing-library/jest-dom": "^5.16.4",
53-
"@testing-library/react": "^13.0.0",
54-
"@types/jest": "^26.0.20",
55-
"@types/node": "^22.10.7",
56-
"@types/react": "^19.0.7",
57-
"@types/react-dom": "^19.0.3",
58-
"@umijs/fabric": "^3.0.0",
51+
"@rc-component/np": "^1.0.4",
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+
"@umijs/fabric": "^4.0.1",
5959
"cheerio": "1.0.0-rc.12",
60-
"cross-env": "^7.0.0",
61-
"dumi": "^2.0.0",
62-
"eslint": "^8.54.0",
63-
"eslint-plugin-jest": "^27.6.0",
64-
"eslint-plugin-unicorn": "^49.0.0",
65-
"father": "^4.0.0",
66-
"gh-pages": "^3.1.0",
67-
"glob": "^10.0.0",
68-
"prettier": "^2.1.2",
69-
"react": "^18.0.0",
70-
"react-dom": "^18.0.0",
71-
"typescript": "^5.0.0",
60+
"cross-env": "^10.1.0",
61+
"dumi": "^2.4.35",
62+
"eslint": "^8.57.1",
63+
"eslint-plugin-jest": "^27.9.0",
64+
"eslint-plugin-unicorn": "^56.0.1",
65+
"father": "^4.6.23",
66+
"gh-pages": "^6.3.0",
67+
"glob": "^13.0.6",
68+
"prettier": "^3.9.0",
69+
"react": "^18.3.1",
70+
"react-dom": "^18.3.1",
71+
"typescript": "^5.9.3",
7272
"umi-test": "^1.9.7"
7373
},
7474
"peerDependencies": {

tsconfig.json

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

0 commit comments

Comments
 (0)