koot
koot copied to clipboard
Koot是基于React和Koa的WEB全栈技术解决方案。
**SSR/Koa** - 沿用目前版本 **SSR/Koa/ServerBundle** - 无需 npm install,直接启动 **SSR/Serverless** - 引用 `./server/`,`app.listen(xxx)`
 
打包发布到 Serverless 后,控制台报以下问题: ``` Service Worker SUPPORTED. ERROR DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL ('https://aaaa.com') does not match the current origin ('https://bbbb.com'). ```
## 目前结论:暂不升级 原因:服务端渲染部分的周边工具尚不完善,包括官方提供的部分 API 仍在 alpha 阶段。 需要等待完善的框架/组件/库: - [react-router-config](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config) - [react-router-redux](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux) - `ConnectedRouter` 产生的组件属性不完善 - [history](https://github.com/ReactTraining/history) ## 升级注意事项 - 在尝试中修改的代码详见 [react-router-v4](https://github.com/cmux/koot/tree/upgrade-react-router-v4) 分支 - `react-router-config` 的 `match()` 方法与 v3 同名的方法有较大差异。在升级时需要自己拼装...
CLI 想法
## koot-cli - [新] 管理当前项目 (默认选项) - 一级信息 (UI突出显示) - 项目名 - 项目类型 - 是否多语言 - 是否 Service Worker - 是否 PWA - 文档链接 - Whatever 卡片 - 开发 -...
info: https://next.yarnpkg.com/features/pnp