Phonegap源码控制陷阱? [英] Phonegap source control gotchas?

查看:99
本文介绍了Phonegap源码控制陷阱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在一个团队第一次进行phonegap应用程序。

I'll be working in a team doing phonegap applications for the first time.

对于一个由3个团队共享的超级简单的样板应用程序,我应该包括整个项目(即所有目录):

For a super simple boilerplate app shared by a team of 3, should I be including the entire project (i.e. all the directories):

app
--merges
--platforms
--plugins
--www

遇到用户特定的冲突问题(和我假设android builds),我应该在.gitignore中添加 platforms 目录吗?我是否正确的假设所有的构建应该由用户完成,而不依赖于别人的手机版本的应用程序版本?

Having had user specific issues with conflicts which arise with iOS builds (and I'm assuming android builds), should I be adding the platforms directory in the .gitignore? Am I correct in assuming that all builds should be done by the user and not rely on someone else's phonegap build-ed versions of the app?

推荐答案

在我的项目中,我们只提交www文件夹和一个Windows批处理文件(我们在Windows上开发),它负责自动安装应用程序需要的每个插件。

In my project we only commit the www folder and a windows batch file (We develop on Windows) that is the responsable for install automatically each plugin that the app needs.

添加新插件时,我们向该文件添加一个新条目。

When a new plugin is added, we add a new entry to that file.

当一个新开发者想要使用该应用程序创建自己的新环境时,一个新的proyect并导入www文件夹。之后,他运行本地构建命令,然后运行自定义的插件文件。

When a new developer wants to make his developt enviroment with the app, him creates a new proyect and imports the www folder. After that, he runs the local build command and later runs the custom porject plugin file.

这篇关于Phonegap源码控制陷阱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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