Skip to content

Commit

Permalink
feat: use dumi (#558)
Browse files Browse the repository at this point in the history
* feat: use dumi

* remove include

* update

* add readme

* add coverage

* perf style

* update dumi version

* lower dumi version

* add jest config

* remove
  • Loading branch information
xrkffgg authored Dec 3, 2020
1 parent dec98b0 commit 87c4d13
Show file tree
Hide file tree
Showing 81 changed files with 600 additions and 232 deletions.
17 changes: 12 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# top-most EditorConfig file
# http://editorconfig.org
root = true

# Unix-style newlines with a newline ending every file
[*.{js,css}]
end_of_line = lf
insert_final_newline = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ module.exports = {
'react/no-find-dom-node': 1,
'react/require-default-props': 0,
'no-confusing-arrow': 0,
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default-member': 0,
'import/no-unresolved': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
'jsx-a11y/control-has-associated-label': 0,
Expand Down
2 changes: 1 addition & 1 deletion .fatherrc.js → .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default {
cjs: 'babel',
esm: { type: 'babel', importLibToEs: true },
runtimeHelpers: true,
preCommit: {
eslint: true,
prettier: true,
},
runtimeHelpers: true,
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ es/
!tests/__mocks__/rc-util/lib
examples/debug.tsx
.history

# umi
.umi
.umi-production
.umi-test
.env.local
9 changes: 8 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.doc
.storybook
es
lib
lib
**/*.svg
**/*.ejs
**/*.html
package.json
.umi
.umi-production
.umi-test
17 changes: 17 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';

export default defineConfig({
title: 'rc-table',
favicon:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
logo:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
outputPath: '.doc',
exportStatic: {},
styles: [
`a img + svg {
display: none;
}`
]
});
143 changes: 0 additions & 143 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Loading

1 comment on commit 87c4d13

@vercel
Copy link

@vercel vercel bot commented on 87c4d13 Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.