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

refactor: use FileLoader to load schedule files #7

Merged
merged 1 commit into from
Aug 18, 2016
Merged

Conversation

popomore
Copy link
Member

@popomore popomore commented Aug 17, 2016

Checklist
  • npm test passes
  • commit message follows commit guidelines
Affected core subsystem(s)

Loader

Description of change

重写 Loader,简化代码

eggjs/egg#48

@popomore
Copy link
Member Author

egg-core 需要改下,用 realpath 解析 plugin 目录

@@ -1,3 +1,3 @@
'use strict';

exports.logrotater = true;
exports.logrotator = true;
Copy link
Member

Choose a reason for hiding this comment

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

这个插件是不是不用开了?下面那个用例自己造一个node_modules目录写个假任务。

不然耦合另一个插件来测试在这里不是很必要吧。

Copy link
Member Author

Choose a reason for hiding this comment

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

原来就写着,问问 @dead-horse

Copy link
Member

Choose a reason for hiding this comment

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

应该是可以干掉的, 后面再提个 PR 吧, 这个先合

@atian25
Copy link
Member

atian25 commented Aug 17, 2016

+1

@popomore
Copy link
Member Author

eggjs/core#11

@popomore
Copy link
Member Author

等 egg-core 合并重跑下

@popomore popomore force-pushed the fileloader branch 2 times, most recently from e217c3f to 0dc6f1a Compare August 18, 2016 05:44
@codecov-io
Copy link

codecov-io commented Aug 18, 2016

Current coverage is 80.70% (diff: 100%)

Merging #7 into master will decrease coverage by 1.65%

@@             master         #7   diff @@
==========================================
  Files             3          3          
  Lines           119        114     -5   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits             98         92     -6   
- Misses           21         22     +1   
  Partials          0          0          

Powered by Codecov. Last update a139f00...0dc6f1a

@atian25
Copy link
Member

atian25 commented Aug 18, 2016

这个可以重新跑下了

@popomore
Copy link
Member Author

已经重新跑了

@atian25 atian25 merged commit 04da724 into master Aug 18, 2016
@atian25 atian25 deleted the fileloader branch August 18, 2016 06:44
@atian25
Copy link
Member

atian25 commented Aug 18, 2016

2.1.0

@dead-horse
Copy link
Member

+1

@fengmk2
Copy link
Member

fengmk2 commented Aug 19, 2016

太棒!有了通用loader复用不再是问题

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.

5 participants