-
Notifications
You must be signed in to change notification settings - Fork 37
feat: support eggScriptsConfig in package.json #41
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
Conversation
|
|
||
| ```json | ||
| { | ||
| "eggScriptsConfig": { |
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.
是否改成 config 节点下比较好?
{
"config": {
"eggScripts": { ... }
}
}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.
现在有 egg, eggPlugin 等一系列配置了,还是先平铺吧?
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
==========================================
+ Coverage 98.54% 98.56% +0.02%
==========================================
Files 6 6
Lines 206 209 +3
==========================================
+ Hits 203 206 +3
Misses 3 3
Continue to review full report at Codecov.
|
|
2.12.0 |
| // read argv from eggScriptsConfig in package.json | ||
| if (pkgInfo && pkgInfo.eggScriptsConfig && typeof pkgInfo.eggScriptsConfig === 'object') { | ||
| for (const key in pkgInfo.eggScriptsConfig) { | ||
| if (argv[key] == null) argv[key] = pkgInfo.eggScriptsConfig[key]; |
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/node-modules/common-bin/blob/master/lib/helper.js#L180
应该可以通过 node-options--max-http-header-size 的方式来注入 Node 启动参数
目前不支持,提了个 PR:#54
Checklist
npm testpassesAffected core subsystem(s)
Description of change