Skip to content

Commit 9539e28

Browse files
authored
chore: bump dumi@2.x.x (#125)
1 parent 0814405 commit 9539e28

7 files changed

Lines changed: 29 additions & 15 deletions

File tree

.umirc.ts renamed to .dumirc.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
import { defineConfig } from 'dumi';
33

44
export 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',

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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
@@ -24,7 +24,7 @@ jobs:
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: |

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.storybook
21
*.iml
32
*.log
43
.idea/
@@ -29,9 +28,9 @@ yarn.lock
2928
package-lock.json
3029
coverage/
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/

docs/demo/simple.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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>

docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
hero:
3+
title: rc-switch
4+
description: React Switch Component
5+
---
6+
7+
<embed src="../README.md"></embed>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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",
@@ -52,7 +52,7 @@
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",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
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
}

0 commit comments

Comments
 (0)