如何拆分ui5应用程序 [英] How to split ui5 app

查看:43
本文介绍了如何拆分ui5应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发 ui5 应用程序,但我自己开发了整个应用程序.现在我必须管理一个开发团队,他们将在同一个应用程序上工作.我已经看过 Git 来管理存储库,但是我们如何拆分工作以在同一个应用程序上工作?

I have been developing ui5 apps but working on my own on the whole app. Now I have to manage a team of developers that will be working on the same app. I have had a look at Git to manage the repository, but how can we split work to work all on the same app?

推荐答案

这当然取决于您的应用程序的复杂性以及您在开发团队中的人数.

It of course depends on the complexity of your app and the number of people you have in your development team.

尽管如此,您首先要考虑的是为存储库使用 git 分支模型(例如功能分支、gitflow 或 http://nvie.com/posts/a-successful-git-branching-model/).拥有多个活动分支而不是只有一个(例如 master)会减少合并的次数.

Nevertheless, the first thing you have to consider is using a git branching model for the repository (e.g. feature branches, gitflow or http://nvie.com/posts/a-successful-git-branching-model/). Having several active branches instead of only one (e.g. master) will reduce the number of merges.

通常在使用 git 时,最好可以拆分工作,这样两个开发人员就不需要同时接触同一个文件(以避免需要手动合并的冲突).您可以通过以下方式在 UI5 中执行此操作:

Generally when working with git, it is best if you can split up work such that two developers don't need to touch the same file at the same time (to avoid conflicts which need manual merging). You can do this in UI5 by:

通常,拆分的粒度不会显着影响您的运行时性能(假设您是在部署前构建 UI5 应用程序).这是因为在构建阶段,所有 UI5 工件都合并到一个预加载文件中.

Normally, the granularity of the splitting will not affect your runtime performance drastically (given that you are building the UI5 app before deploy). This is because, during the build phase, all UI5 artifacts are merged into a single preload file.

如果您要一起开发多个应用,您还应该考虑构建一个重用库/组件以在您的应用之间共享代码(例如控制器基类、一些格式化程序、适配器等).

If you will work on several apps together, you should also consider building a reuse library / component to share code between your apps (e.g. a controller base class, some formatters, adapters, etc).

这篇关于如何拆分ui5应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆