File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import { defineConfig } from 'dumi' ;
33
44export default defineConfig ( {
5- title : 'rc-switch' ,
6- favicon : 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ,
7- logo : 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ,
5+ favicons : [ 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ] ,
6+ themeConfig : {
7+ name : 'rc-switch' ,
8+ logo : 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ,
9+ } ,
810 outputPath : '.doc' ,
911 exportStatic : { } ,
1012 base : '/switch' ,
Original file line number Diff line number Diff line change 1515
1616 - uses : actions/setup-node@v1
1717 with :
18- node-version : ' 12 '
18+ node-version : ' 18 '
1919
2020 - name : cache package-lock.json
2121 uses : actions/cache@v2
2424 key : lock-${{ github.sha }}
2525
2626 - name : create package-lock.json
27- run : npm i --package-lock-only
27+ run : npm i --package-lock-only--ignore-scripts
2828
2929 - name : hack for singe file
3030 run : |
Original file line number Diff line number Diff line change 1- .storybook
21* .iml
32* .log
43.idea /
@@ -29,9 +28,9 @@ yarn.lock
2928package-lock.json
3029coverage /
3130
32- # umi
33- .umi
34- .umi-production
35- .umi-test
31+ # dumi
32+ .dumi / tmp
33+ .dumi / tmp-test
34+ .dumi / tmp-production
3635.env.local
3736.doc /
Original file line number Diff line number Diff line change 1- # Simple
1+ ---
2+ title : Simple
3+ nav :
4+ title : Demo
5+ path : /demo
6+ ---
27
3- <code src =" ../examples/simple.tsx " / >
8+ <code src =" ../examples/simple.tsx " ></ code >
Original file line number Diff line number Diff line change 1+ ---
2+ hero :
3+ title : rc-switch
4+ description : React Switch Component
5+ ---
6+
7+ <embed src =" ../README.md " ></embed >
Original file line number Diff line number Diff line change 3131 "gh-pages" : " npm run docs:build && npm run docs:deploy" ,
3232 "lint" : " eslint ." ,
3333 "lint-staged" : " lint-staged" ,
34- "prepare" : " husky install" ,
34+ "prepare" : " husky install && dumi setup " ,
3535 "prepublishOnly" : " npm run compile && np --yolo --no-publish" ,
3636 "postpublish" : " npm run gh-pages" ,
3737 "start" : " dumi dev" ,
5252 "@types/classnames" : " ^2.2.10" ,
5353 "@types/jest" : " ^26.0.4" ,
5454 "@umijs/fabric" : " ^3.0.0" ,
55- "dumi" : " ^1.1 .0" ,
55+ "dumi" : " ^2.0 .0" ,
5656 "enzyme" : " ^3.0.0" ,
5757 "enzyme-adapter-react-16" : " ^1.0.1" ,
5858 "enzyme-to-json" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 1313 "skipLibCheck" : true ,
1414 "declaration" : true ,
1515 "paths" : {
16- "rc-switch" : [" src/index.tsx" ]
16+ "rc-switch" : [" src/index.tsx" ],
17+ "@@/*" : [" .dumi/tmp/*" ]
1718 }
1819 }
1920}
You can’t perform that action at this time.
0 commit comments