search

Home  >  Q&A  >  body text

如何用 git 管理具有多个 UI 版本的项目

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

淡淡烟草味淡淡烟草味2809 days ago624

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-28 09:06:37

    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.

    reply
    0
  • Cancelreply