How to split ui5 app

冷暖自知 提交于 2019-12-13 09:18:42

问题


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?


回答1:


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

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.

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:

  • Splitting components and nesting them.
  • Splitting views and controllers and nesting them.
  • Splitting views into fragments.
  • Composing the controllers out of mixins.

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).



来源:https://stackoverflow.com/questions/43473517/how-to-split-ui5-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!