Skip to content

Commit da9762f

Browse files
committed
chore: standardize rc tooling and docs
1 parent 49a5d96 commit da9762f

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
@@ -3,7 +3,7 @@ import { defineConfig } from 'dumi';
33
import path from 'path';
44

55
const basePath = process.env.GH_PAGES ? '/motion/' : '/';
6-
const publicPath = process.env.GH_PAGES ? '/motion/' : '/';
6+
const publicPath = basePath;
77

88
export default defineConfig({
99
alias: {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ export default ({ keys }: { keys: string[] }) => (
6161

6262
## Examples
6363

64-
Run the examples locally:
64+
Run the local dumi site:
6565

6666
```bash
6767
npm install
6868
npm start
6969
```
7070

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

7373
## API
7474

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ export default ({ keys }: { keys: string[] }) => (
6161

6262
## 示例
6363

64-
本地运行示例
64+
运行本地 dumi 站点
6565

6666
```bash
6767
npm install
6868
npm start
6969
```
7070

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

7373
## API
7474

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,26 @@
5656
},
5757
"devDependencies": {
5858
"@rc-component/father-plugin": "^2.2.0",
59-
"@rc-component/np": "^1.0.3",
60-
"@testing-library/jest-dom": "^5.16.4",
59+
"@rc-component/np": "^1.0.4",
60+
"@testing-library/jest-dom": "^6.9.1",
6161
"@testing-library/react": "^15.0.7",
62-
"@types/jest": "^26.0.8",
63-
"@types/node": "^24.5.2",
64-
"@types/react": "^18.0.0",
65-
"@types/react-dom": "^18.0.0",
66-
"@umijs/fabric": "^4.0.0",
67-
"cross-env": "^7.0.0",
68-
"dumi": "^2.0.18",
69-
"eslint": "^8.0.0",
70-
"father": "^4.1.2",
71-
"gh-pages": "^6.0.0",
72-
"husky": "^8.0.3",
73-
"lint-staged": "^14.0.1",
74-
"prettier": "^2.1.1",
75-
"rc-test": "^7.0.14",
76-
"react": "^18.3.0",
77-
"react-dom": "^18.3.0",
78-
"typescript": "^4.0.3"
62+
"@types/jest": "^29.5.14",
63+
"@types/node": "^26.0.1",
64+
"@types/react": "^18.3.31",
65+
"@types/react-dom": "^18.3.7",
66+
"@umijs/fabric": "^4.0.1",
67+
"cross-env": "^10.1.0",
68+
"dumi": "^2.4.35",
69+
"eslint": "^8.57.1",
70+
"father": "^4.6.23",
71+
"gh-pages": "^6.3.0",
72+
"husky": "^9.1.7",
73+
"lint-staged": "^16.4.0",
74+
"prettier": "^3.9.0",
75+
"rc-test": "^7.1.3",
76+
"react": "^18.3.1",
77+
"react-dom": "^18.3.1",
78+
"typescript": "^5.9.3"
7979
},
8080
"peerDependencies": {
8181
"react": ">=16.9.0",

tsconfig.json

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

0 commit comments

Comments
 (0)