Skip to content

Commit

Permalink
feat: prefer .fatherrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed May 31, 2019
1 parent f75023c commit 4f1f5e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ $ father doc deploy

注:

1. 不能传 `--config` 参数,通过 `--config` 指定的文件内容可全部配置在 `.umirc.library.js`[doc](#doc) 配置里。
1. 不能传 `--config` 参数,通过 `--config` 指定的文件内容可全部配置在 `.fatherrc.js`[doc](#doc) 配置里。
2. 使用 `deploy` 之前请先执行 `build` 命令,文档部署后域名为:`https://yourname.github.io/your-repo`

## Config

新建 `.umirc.library.js` 文件进行配置。
新建 `.fatherrc.js` 文件进行配置。

比如:

Expand All @@ -100,7 +100,7 @@ export default {

注意:

1. lerna 项目可以为每个 package 单独配,并且可以继承根目录的 `.umirc.library.js` 配置
1. lerna 项目可以为每个 package 单独配,并且可以继承根目录的 `.fatherrc.js` 配置
2. 配置文件支持 es6 和 TypeScript

### Options
Expand Down
4 changes: 4 additions & 0 deletions src/getUserConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ function testDefault(obj) {
}

export const CONFIG_FILES = [
'.fatherrc.js',
'.fatherrc.jsx',
'.fatherrc.ts',
'.fatherrc.tsx',
'.umirc.library.js',
'.umirc.library.jsx',
'.umirc.library.ts',
Expand Down

0 comments on commit 4f1f5e7

Please sign in to comment.