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 ssr for egg framework #168

Merged
merged 1 commit into from
Apr 23, 2019
Merged

Conversation

justquanyin
Copy link
Collaborator

增加北斗同构插件,用以支持Egg框架下的轻量级同构功能

Checklist

  • npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines

Description of change

  • 开启 egg-beidou 插件,可使用 ctx.ssr(path,props) 进行同构页面渲染
  • path路径支持 全路径、绝对路径,可配置默认文件扩展名
  • 支持require.cache缓存是否使用配置
  • 支持 render stream
  • 支持渲染错误异常处理

@codecov-io
Copy link

codecov-io commented Apr 23, 2019

Codecov Report

Merging #168 into master will decrease coverage by 0.25%.
The diff coverage is 84.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
- Coverage   93.02%   92.77%   -0.26%     
==========================================
  Files          86       87       +1     
  Lines        1577     1605      +28     
==========================================
+ Hits         1467     1489      +22     
- Misses        110      116       +6
Impacted Files Coverage Δ
packages/egg-beidou/config/config.default.js 100% <100%> (ø) ⬆️
packages/egg-beidou/app/view-middlewares/script.js 100% <100%> (ø) ⬆️
packages/egg-beidou/app/view-middlewares/custom.js 100% <100%> (ø) ⬆️
packages/egg-beidou/app/view-middlewares/render.js 100% <100%> (ø) ⬆️
packages/egg-beidou/app.js 100% <100%> (ø) ⬆️
packages/egg-beidou/app/view-middlewares/style.js 100% <100%> (ø) ⬆️
packages/egg-beidou/lib/beidou.js 78.26% <42.85%> (-21.74%) ⬇️
packages/egg-beidou/app/extend/context.js 90.32% <90.32%> (ø)
packages/beidou-view-rax/lib/rax-view.js 94.11% <0%> (+5.88%) ⬆️
... and 1 more

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 b2fdb07...9d275bf. Read the comment docs.

@njugray njugray merged commit 809bdf6 into master Apr 23, 2019
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.

3 participants