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

[建议]使用yarn workspace #26

Closed
AimLuo opened this issue Dec 6, 2019 · 8 comments
Closed

[建议]使用yarn workspace #26

AimLuo opened this issue Dec 6, 2019 · 8 comments

Comments

@AimLuo
Copy link

AimLuo commented Dec 6, 2019

而不是lerna bootstrap

@xiaohuoni
Copy link
Member

为什么呢?

@AimLuo
Copy link
Author

AimLuo commented Dec 9, 2019

至少依赖包要少装很多,只有一个lock文件。我曾经用lerna管理四十个包,安装依赖都半个小时。我现在所有项目都用yarn来管理。个人觉得还不错。搭了私有npm库,下依赖超级快。

@xiaohuoni
Copy link
Member

lerna 更多的适用于包之间有依赖关系的情况。不知道适用yarn workspace,有没有这个自动升级依赖包和自动changelog之类功能

@AimLuo
Copy link
Author

AimLuo commented Dec 9, 2019

yarn workspace是和lerna配合使用的,lerna负责版本管理,yarn workspace实现了类似lerna bootstrap以及lerna exec的功能。
✔其实如果package不多,可以不考虑。
vue-cli可以参考

@AimLuo
Copy link
Author

AimLuo commented Dec 9, 2019

另外问个问题,是不是准备用father-doc来做umijs/father的文档系统了。docz不用了吗。
吐槽一句:docz好多bug

@Deturium
Copy link
Contributor

Deturium commented Dec 9, 2019

另外问个问题,是不是准备用father-doc来做umijs/father的文档系统了。docz不用了吗。
吐槽一句:docz好多bug

是的

@PeachScript
Copy link
Member

@AimLuo 我们用下来 Docz 确实体验比较差,father-doc 会在下一个 father 的大版本中作为 father 的 doc 核心,当前版本内不做直接替换,会添加可选参数来切换到 father-doc

@PeachScript
Copy link
Member

关于这个问题,先不做调整吧,father-doc 很长一段时间内应该都只有两个包,当下最紧急的还是完善功能,先保证用户的体验,感谢建议❤️

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

No branches or pull requests

4 participants