GithubHelp home page GithubHelp logo

cr about ssr HOT 3 CLOSED

zhangyuang avatar zhangyuang commented on May 21, 2024
cr

from ssr.

Comments (3)

i5ting avatar i5ting commented on May 21, 2024

TODO:文档以svelte.dev为例,如何自己扩展和定义一个Serverless-side render

from ssr.

zhangyuang avatar zhangyuang commented on May 21, 2024

mark 记录

plugin-faas和plugin-midway分的不好

plugin-faas基于midway-faas
plugin-midway基于midway-web
目前来看虽然都是midway系的,在启动部署构建方面差别还是比较大。且一个需要 f.yml 文件存在。暂时分为独立的两个插件分别针对 serverless场景 和传统 Node.js 应用场景。后续跟 midway 团队沟通如何统一

plugin代码在哪里?别人如何扩展

plugin仅用于本地开发阶段使用,生产环境不依赖 plugin。通过 config.js 扩展应用的一些功能。此 plugin 不像 webpack plugin 以及 umi plugin。我们支持单个服务端plugin与单个前端plugin 互相组合。不支持多个服务端plugin或者前端plugin互相组合。此处的plugin粒度较大,详细描述见readme

"vue": "^2.0.0",??

目前的结构是 vue2+webpack, vue3+vite 后续完善,但工作量不确定,暂时不一起发布。
vite部分没有看到

create-ssr-app集成没有

详情见 readme,通过 npm init ssr-app <projectName> --template=xxx 创建不同的 example
example和其他地方不要过度强调midway,这个版本主导Serverless

example里既有midway又有egg,依赖需要处理一下。
这是 [email protected] 的用法,[email protected] 将midway作为上层框架,egg/koa/express 作为底层框架根据需要安装使用

测试基本没有。只有jest配置。

e2e 测试所有的 example 都有, jest单测在egg-react-ssr 这个项目都有,晚点可以迁移过来并更新

fePlugin命名不好

待讨论

from ssr.

i5ting avatar i5ting commented on May 21, 2024

fePlugin 改为 clientPlugin,跟serverPlugin对应

from ssr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.