如何管理 PhoneGap 和 webapp 代码?
据我所知,每次进行更改时,例如配置变量的值,我都必须
- 在每个项目(webapp、Android、iPhone 等)中制作更改的副本
- 构建每个项目
- 分发每个项目(除了 webapp 之外)
我发现 PhoneGap build 这似乎是移动部分的一个很好的解决方案。但它仍然是测试版,并不能解决所有问题。我还有webapp的代码,不完全一样。
您知道有助于改进此过程的技术、工具或技巧吗?
提前致谢。
As far as I see every time I make a change, for example the value of a configuration variable, I have to
- Make a copy of the change in each project (webapp, Android, IPhone, etc.)
- Build each project
- Distribute each project (besides the webapp)
I have found PhoneGap build which seems to be a great solution for the mobile part. But it's still beta and it doesn't solve everything. I still have webapp's code, which is not exactly the same.
Do you know techniques, tools or tricks, which help to improve this process?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们目前正在使用 PhoneGap 和 Sencha Touch 开发一个 Web/Android 应用程序(iOS 即将推出)。到目前为止,我们的方法如下:
所以我们主要通过高级构建脚本来完成它。我们在 Web 和 Android 上使用 Maven。 iOS 即将推出(我的意思是,进入我们的工作),所以我们也会在那里寻找一些合理的构建工具。
我们正在使用 Hudson 持续集成来构建我们的项目。
我必须承认的是,整个环境(多项目 Maven 构建、JSTD、多节点 Hudson)是一个非常糟糕的设置,花了相当多的努力才弄清楚。
We are currently developing a web/Android app using PhoneGap and Sencha Touch (iOS is coming soon). So far our approach is as follows:
So we're doing it mainly through advanced build scripts. We're using Maven for web and Android. iOS is coming soon (into our work, I mean), so we'll be looking for some sensible build tool there too.
We're building our projects using Hudson continuous integration.
What I have to admit is that this whole environment (multi-project Maven builds, JSTD, multi-node Hudson) is a hell of a setup, took quite an effort to figure it out.