Create a project using my app as a starter in Phonegap

混江龙づ霸主 提交于 2019-12-23 05:22:44

问题


My app's git repository contain only the www folder and so it looks like this:

css
img
js
res
config.xml
icon.png
index.html

To start development I need to:

  1. Clone my app into www-app
  2. Create a phonegap app phonegap create testapp com.example.testapp "Test"
  3. remove testapp/www and copy www-app to testapp/www

Is there a easier to way to set this up? Maybe I can specify a project to build from on phonegap create instead of the phonegap-start project.


回答1:


I have not tried this with phonegap CLI but cordova CLI can copy the initial contents from a project with --copy-from option, so something like phonegap create testapp com.example.testapp "Test" --copy-from www-app may possibly work. Alternately you can create the project using Cordova CLI with cordova create testapp com.example.testapp "Test" --copy-from www-appand continue with phonegap.



来源:https://stackoverflow.com/questions/24196703/create-a-project-using-my-app-as-a-starter-in-phonegap

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