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: add framework example #9

Merged
merged 2 commits into from
Jan 17, 2017
Merged

feat: add framework example #9

merged 2 commits into from
Jan 17, 2017

Conversation

popomore
Copy link
Member

No description provided.

@mention-bot
Copy link

@popomore, thanks for your PR! By analyzing the history of the files in this pull request, we identified @atian25 to be a potential reviewer.

@popomore popomore requested review from fengmk2 and atian25 January 16, 2017 12:53
@popomore
Copy link
Member Author

基于 #8 调整

"name": "framework-example",
"version": "1.0.0",
"devDependencies": {
"egg-bin": "^1.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

2.0.0

"egg-bin": "^1.0.0"
},
"scripts": {
"dev": "egg-bin dev"
Copy link
Member

Choose a reason for hiding this comment

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

单测加一下

popomore added a commit to eggjs/egg that referenced this pull request Jan 16, 2017
@atian25
Copy link
Member

atian25 commented Jan 16, 2017

顺便看下 https://github.com/eggjs/egg-boilerplate-framework , 两边同步下推荐的写法,看看那边的要不要优化下

@popomore
Copy link
Member Author

再看看, @atian25 这个两个其实不用保持一致

Copy link
Member

@atian25 atian25 left a comment

Choose a reason for hiding this comment

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

+1

let app;
before(() => {
app = mm.app({
baseDir: path.join(__dirname, '../../../app'),
Copy link
Member

Choose a reason for hiding this comment

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

这里不是直接写 fixtures 下的路径就可以了?

Copy link
Member Author

@popomore popomore Jan 16, 2017

Choose a reason for hiding this comment

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

移到 app 了,不要要建一个重复的 fixture

@@ -5,7 +5,7 @@
"private": true,
Copy link
Member

Choose a reason for hiding this comment

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

框架不应该 private

Copy link
Member Author

Choose a reason for hiding this comment

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

这个是 app 吧

Copy link
Member

Choose a reason for hiding this comment

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

喔, 没注意看, 以为是 framework

popomore added a commit to eggjs/egg that referenced this pull request Jan 16, 2017
@atian25
Copy link
Member

atian25 commented Jan 17, 2017

LGTM

@fengmk2 fengmk2 merged commit 0afcff8 into master Jan 17, 2017
@fengmk2 fengmk2 deleted the framework2 branch January 17, 2017 04:07
popomore added a commit to eggjs/egg that referenced this pull request Jan 20, 2017
popomore added a commit to eggjs/egg that referenced this pull request Jan 20, 2017
atian25 pushed a commit to eggjs/egg that referenced this pull request Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants