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

docs: unify config in quickstart #1094

Merged
merged 3 commits into from
Jun 23, 2017
Merged

docs: unify config in quickstart #1094

merged 3 commits into from
Jun 23, 2017

Conversation

dead-horse
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

closes #1073

@mention-bot
Copy link

@dead-horse, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pmq20, @atian25 and @missjing to be potential reviewers.

@atian25
Copy link
Member

atian25 commented Jun 23, 2017

反了吧,应该统一改为 module.exports 的方式,这个才是大多数情况下会使用的格式。

@dead-horse
Copy link
Member Author

quickstart 没有用到 appInfo,大部分情况也不会用到 appInfo,不要在这里引入 module.exports 形式的了,啰嗦还要解释什么是 appInfo

@dead-horse
Copy link
Member Author

quickstart 给出最简化的用法

@atian25
Copy link
Member

atian25 commented Jun 23, 2017

之前最早就都是 exports 的,后面太多这方面的反馈了,不胜其烦,才改成 module 的。

想的是:看得懂的,看两个都一样;看不懂的,用插件的时候复制错了,就跑过来吐槽,烦。

@dead-horse
Copy link
Member Author

既然都看不懂,就写简单的,再来问直接锁 issue

@codecov
Copy link

codecov bot commented Jun 23, 2017

Codecov Report

Merging #1094 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1094   +/-   ##
======================================
  Coverage    99.7%   99.7%           
======================================
  Files          29      29           
  Lines         676     676           
======================================
  Hits          674     674           
  Misses          2       2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c31bc15...b4fbd40. Read the comment docs.

},
}
return config;
exports.keys = '<YOUR_SECURITY_COOKE_KEYS>';
Copy link
Member

Choose a reason for hiding this comment

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

这个地方是故意不引起来的。

@@ -307,7 +301,7 @@ module.exports = app => {
And also add config.

```js
// config/config.default.js
// add news' configurations
Copy link
Member

Choose a reason for hiding this comment

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

路径保留下?

@popomore
Copy link
Member

把脚手架改了吧

@fengmk2 fengmk2 merged commit 9099be9 into master Jun 23, 2017
@fengmk2 fengmk2 deleted the docs-quickstart branch June 23, 2017 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

文档错误
5 participants