umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.3k stars 2.65k forks source link

Roadmap for 2.x #1365

Closed sorrycc closed 4 years ago

sorrycc commented 5 years ago

2.x

Big Features

dev/build 提速

部署和使用场景

路由

性能

dva

Misc

3.x

有 break-change 的改动放这里,无实际开发计划。

持续做

参考

xiaohuoni commented 5 years ago

关注

xiaoxiangmoe commented 5 years ago

umi component 的一个目的是支持 monorepo 开发吗?

.
├── README.md
├── lerna.json
├── package.json
├── packages
│   └── @myscope
│       ├── my-app-components  # 使用 umi component 编译
│       ├── other-libs         # 自己配置 rollup 编译
│       └── my-app             # 使用 umi 编译,业务强耦合的代码
└── yarn.lock

其中业务强耦合的代码放在 my-app-component ,使用 umi component 编译。 与业务脱耦合的可复用的组件/代码等,放在 my-app-componentsother-libs ,甚至可以单独发布。 也可以引入一些物料市场内的库,直接放在 @myscope 目录下,稍作修改被其余库引入。

xiaoxiangmoe commented 5 years ago

顺便提一下,umi component 是不是可以改成 umi library 啊,因为非组件的库,比如 hooks 之类的,还有其余的一些很纯粹的工具函数库,也可以用它打包。

我们目前可以考虑使用 https://github.com/developit/microbundle

Leonard-Li777 commented 5 years ago

希望能增加是否使用内置antd的选项,有的项目是用的antd2.x。

另外感觉即使开启了modules: false , antd的tree-shaking还是没生效

xfields commented 5 years ago

sorrycc/todos#238 这个链接 404 了

devmsg commented 5 years ago

关注

denggy commented 5 years ago

1.既然umi是内置dva的 那么dva原生的方法 是否应该暴露出来 (包括dva生命周期是否可以覆盖) 2.目前umi 的 2.2版本 在路由和layout上感觉还是有些单一( 比如不支持动态插入路由 还有默认的路由约定感觉很鸡肋 因为没有和layout关联起来) 不过在总体思路和编辑速度上比pro1.x 的roadhog那版强太多了 期待 @sorrycc 继续发力

shengbeiniao commented 5 years ago

目前UMI的目录是约束的,不适合monorepo开发,例如yarn的workspace,或者官方能提供示例

xiaohuoni commented 5 years ago

Misc

JevonYang commented 5 years ago

请问,以后版本中考虑支持小程序(微信/支付宝/百度)么?

0xzxdx commented 5 years ago

SSR急需,希望可以支持

ybning commented 5 years ago

SSR +1

ghost commented 5 years ago

Tree shaking +1

ghost commented 5 years ago
murrayee commented 5 years ago

期待useEverything

ManuRodgers commented 5 years ago

SSR+1

huangshunping commented 5 years ago

SSR+1

Jeepeng commented 5 years ago

SSR+1

liresky commented 5 years ago

什么时候能把那些旧的不维护的依赖包升级上一部分,现在看着都不敢用猛用啊,怕冲突

sorrycc commented 5 years ago

@liresky 那些包?

leohxj commented 5 years ago

物料和组件的概念是如何定义的?他们的粒度和关系是如何的?

这里提到的物料就是 umi block 吧, 简单的理解它就是可复用的代码块吧? 组件是否就是构成 block 的元素?它和 umi 可以没有关系吧。

xiaohuoni commented 5 years ago

https://www.npmjs.com/package/umi-plugin-nprogress

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.