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: support ts filter #27

Merged
merged 1 commit into from
Mar 29, 2018
Merged

feat: support ts filter #27

merged 1 commit into from
Mar 29, 2018

Conversation

atian25
Copy link
Member

@atian25 atian25 commented Mar 29, 2018

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

这个库现在还要支持 egg@1 ,比较简单就没加 ts 后缀的测试。

@atian25 atian25 requested review from popomore and dead-horse March 29, 2018 05:43
@codecov
Copy link

codecov bot commented Mar 29, 2018

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #27   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines          87     91    +4     
=====================================
+ Hits           87     91    +4
Impacted Files Coverage Δ
lib/environment.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02f0c02...acf9696. Read the comment docs.

@@ -61,7 +61,8 @@ class NunjucksEnvironment extends nunjucks.Environment {
// load `app/extend/filter.js` from app/framework/plugin into nunjucks
[LOAD_FILTER]() {
for (const unit of this.app.loader.getLoadUnits()) {
const filterPath = path.join(unit.path, 'app/extend/filter.js');
const filterPath = resolveModule(path.join(unit.path, 'app/extend/filter'));
Copy link
Member

Choose a reason for hiding this comment

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

这个 API 也加在 loader 上了

Copy link
Member Author

Choose a reason for hiding this comment

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

这个包还要支持 egg1, egg1 没加的吧

@popomore popomore merged commit 78ee380 into master Mar 29, 2018
@popomore popomore deleted the ts branch March 29, 2018 09:25
@popomore
Copy link
Member

@atian25 你来发吧

@atian25
Copy link
Member Author

atian25 commented Mar 29, 2018

2.2.0

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.

2 participants