🏗️ TDesign Vue Mono Repo #4247
zhangpaopao0609
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
标题
将 tdesign-vue-next 改造成 monorepo
背景
我们为什么要改造成单仓呢?
vue23 仓库整合,使用一套 UI 来实现。
这就需要基于单仓来进行整合
这里有个问题?就是,整合 vue23 就一定要单仓吗?似乎非单仓也能实现?那为什么要采用单仓呢?
答:我们要改,确实用不用 workspace 都可以,但不用的话,结构同样需要重新安排,因为现在的结构下肯定是无法实现整合的。既然结构要改我们完全可以利用workspace的机制来帮助我们更好的管理和发包。
在不用单仓的情况下,管理会相对更麻烦一些,同时,发包也会变得非常麻烦
单仓非常契合我们的仓库
单仓其它的优势
改造方案
分支:https://github.com/Tencent/tdesign-vue-next/tree/feature/monorepo
configs:仓库多处使用的配置
sites:官网
internal:供仓库各处使用的内部包
packages:仓库主要包
目前存在的问题
结构有些分离
问题:types、props example 等文件在 tdesign-vue-next 目录下,而 UI 却在 components / common / vue3 / vue2.7 下,在 UI 结构上有些分离。
解决方案
利用文件结构引导开发者,减少开发者的开发感知
文件结构冗余
注意事项
所有的改动都需要通过 Git 操作,这样才能保留历史记录。
Beta Was this translation helpful? Give feedback.
All reactions