-
Notifications
You must be signed in to change notification settings - Fork 737
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
Conversation
基于 #8 调整 |
"name": "framework-example", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"egg-bin": "^1.0.0" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
单测加一下
顺便看下 https://github.com/eggjs/egg-boilerplate-framework , 两边同步下推荐的写法,看看那边的要不要优化下 |
再看看, @atian25 这个两个其实不用保持一致 |
There was a problem hiding this 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'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不是直接写 fixtures 下的路径就可以了?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
框架不应该 private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是 app 吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
喔, 没注意看, 以为是 framework
LGTM |
No description provided.