How to initialize a Cordova project using the CLI if I only have a WWW project project?

I am new to Phonegap / Cordova and I installed the latest version of CLI Cordova via npm. I have several projects that I want to create / run, but the root directory seems only to what you find in the www directory of the Cordova project:

https://github.com/phonegap/phonegap-app-anyconference (Phonebook 2.9)

https://github.com/germanviscuso/CowTipLine (Phonegap 2.0)

How can I initialize / update a Cordova project with these projects? I just want to be able to create and run this project using the latest Cordova CLI. Please note that the second project works on a rather old version of Phonegap.

I tried phonegap local run androidwhen in the phonegap-app-anyconference directory and it does not work.

Best! thanks a lot.

+4
source share
1 answer

Answering my own question (for other developers who see this post). You can create a project from a source this way:

cordova create MyProject --copy-from=path/to/sourceproject

Read more here: Create a project using my app as a starter in Phonegap

+5
source

Source: https://habr.com/ru/post/1545747/


All Articles