如何用 git 管理具有多个 UI 版本的项目
淡淡烟草味
淡淡烟草味 2017-04-28 09:04:37
0
1
602

我在维护一个使用 HTML5 开发的移动端项目,该项目要制作手机端及平板电脑两套 UI 界面,并使用同一套底层的业务代码。请问这样的项目应该怎么做代码管理?

淡淡烟草味
淡淡烟草味

reply all(1)
Peter_Zhu

It does not have to be integrated in source code, you can consider integrating in binary form.
There is a set of common business logic components, and business logic is shared through package management.
Other consumer projects (in your case, mobile phones and tablets) use it by referencing components (packages).
If there are changes to the business logic, just modify the common code and update the package for other consumption projects.
There will be a total of 3 projects here, business logic project, mobile phone project, and tablet project.
Mobile phone and tablet projects reference business logic projects through package management.
Different platforms have different component (package) management methods. For example, the .Net platform has nuget, and Javascript also has many of its own. You can learn about it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template