Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use dumi #558

Merged
merged 10 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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