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: plugin support optionalDependencies #40

Merged
merged 1 commit into from
Jan 17, 2017
Merged

Conversation

popomore
Copy link
Member

@popomore popomore commented Jan 16, 2017

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

loadPlugin

Description of change

Closes eggjs/egg#176

@mention-bot
Copy link

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

@popomore popomore changed the title feat: plugin support optionalDependencies WIP: feat: plugin support optionalDependencies Jan 16, 2017
@popomore popomore changed the title WIP: feat: plugin support optionalDependencies feat: plugin support optionalDependencies Jan 16, 2017
@codecov-io
Copy link

Current coverage is 99.41% (diff: 100%)

Merging #40 into master will increase coverage by 0.01%

@@             master        #40   diff @@
==========================================
  Files            16         16          
  Lines           669        681    +12   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            665        677    +12   
  Misses            4          4          
  Partials          0          0          

Powered by Codecov. Last update 8ba84f6...50156c0

function depCompatible(plugin) {
if (plugin.dep && !(Array.isArray(plugin.dependencies) && plugin.dependencies.length)) {
plugin.dependencies = plugin.dep;
delete plugin.dep;
Copy link
Member

Choose a reason for hiding this comment

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

插件文档也得跟着改下

Copy link
Member

Choose a reason for hiding this comment

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

需要 depd 提示一下么?

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

LGTM

@popomore
Copy link
Member Author

popomore commented Jan 17, 2017 via email

@fengmk2 fengmk2 merged commit f6912f3 into master Jan 17, 2017
@fengmk2 fengmk2 deleted the optionalDependencies branch January 17, 2017 08:38
@fengmk2
Copy link
Member

fengmk2 commented Jan 17, 2017

1.5.0

@atian25 atian25 mentioned this pull request Jan 17, 2017
4 tasks
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.

插件依赖增加 optionalDependencies
5 participants