Skip to content

Commit 63c8a4c

Browse files
authored
docs: Use dumi (#220)
* feat: refactor by dumi * feat: workflows * docs: doc * chore: prettier * fix: eslint * chore: code style * chore: code style * fix: out dir * fix: 404 * fix: 404 * chore: md * fix: pure
1 parent 8fe0a2b commit 63c8a4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+462
-330
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# tests
2+
# docs
3+
# examples

.eslintrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ module.exports = {
1313
'import/no-named-as-default-member': 0,
1414
'jsx-a11y/label-has-for': 0,
1515
'jsx-a11y/label-has-associated-control': 0,
16-
'import/no-extraneous-dependencies': [
17-
'error',
18-
{ devDependencies: true, optionalDependencies: true, peerDependencies: true },
19-
],
16+
'import/no-extraneous-dependencies': 0,
17+
'import/no-unresolved': 0,
2018
},
2119
};
File renamed without changes.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
8686

8787
- name: compile
88-
run: npm run compile
88+
run: npm run build
8989

9090
needs: setup
9191

@@ -110,4 +110,4 @@ jobs:
110110
- name: coverage
111111
run: npm test -- --coverage && bash <(curl -s https://codecov.io/bash)
112112

113-
needs: setup
113+
needs: setup

.gitignore

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
.storybook
2-
.doc
3-
*.log
4-
node_modules
5-
coverage/
6-
es/
7-
lib/
8-
~*
9-
yarn.lock
10-
package-lock.json
11-
.idea/
12-
examples/debug.tsx
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/npm-debug.log*
6+
/yarn-error.log
7+
/yarn.lock
8+
/package-lock.json
9+
10+
# production
11+
/dist
12+
/docs-dist
13+
/es
14+
/lib
15+
16+
# misc
17+
.DS_Store
18+
19+
# umi
20+
.umi
21+
.umi-production
22+
.umi-test
23+
.env.local

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/*.svg
2+
**/*.ejs
3+
**/*.html
4+
package.json
5+
.umi
6+
.umi-production
7+
.umi-test

.umirc.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from 'dumi';
2+
3+
export default defineConfig({
4+
title: 'rc-field-form',
5+
favicon:
6+
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
7+
logo:
8+
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
9+
outputPath: '.doc',
10+
exportStatic: {},
11+
// mode: 'site',
12+
// more config: https://d.umijs.org/config
13+
});

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"draggable"
4+
]
5+
}

README.md

Lines changed: 1 addition & 283 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)