The _'s in the file names are representative of a folder path.
The following is the console output of how these files were generated:
C:\Windows\system32>cordova -v
3.5.0-0.2.6
C:\Windows\system32>phonegap -v
3.5.0-0.20.7
C:\Windows\system32>cd c:\dev\temp
c:\dev\temp>mkdir cordova-test
c:\dev\temp>cd cordova-test
c:\dev\temp\cordova-test>phonegap create pg
[phonegap] missing library com.phonegap.helloworld/www/3.5.0
[phonegap] downloading https://github.com/phonegap/phonegap-app-hello-world/arch
ive/3.5.0.tar.gz...
[phonegap] create called with the options c:\dev\temp\cordova-test\pg com.phoneg
ap.helloworld HelloWorld
[phonegap] Customizing default config.xml file
[phonegap] created project at c:\dev\temp\cordova-test\pg
c:\dev\temp\cordova-test>cordova create cd
Creating a new cordova project with name "HelloCordova" and id "io.cordova.hello
cordova" at location "c:\dev\temp\cordova-test\cd"
Downloading cordova library for www...
Download complete
c:\dev\temp\cordova-test>
Here is the difference in file structure:
c:\dev\temp\cordova-test>cd cd
c:\dev\temp\cordova-test\cd>tree /f
Folder PATH listing
Volume serial number is 00000054 02DC:669B
C:.
│ config.xml
│
├───hooks
│ README.md
│
├───platforms
├───plugins
└───www
│ index.html
│
├───css
│ index.css
│
├───img
│ logo.png
│
└───js
index.js
c:\dev\temp\cordova-test\cd>cd ..\pg
c:\dev\temp\cordova-test\pg>tree /f
Folder PATH listing
Volume serial number is 00000040 02DC:669B
C:.
├───.cordova
│ config.json
│
├───hooks
│ README.md
│
├───platforms
├───plugins
└───www
│ config.xml
│ icon.png
│ index.html
│ spec.html
│
├───css
│ index.css
│
├───img
│ logo.png
│
├───js
│ index.js
│
├───res
│ │ .pgbomit
│ │
│ ├───icon
│ │ ├───android
│ │ │ icon-36-ldpi.png
│ │ │ icon-48-mdpi.png
│ │ │ icon-72-hdpi.png
│ │ │ icon-96-xhdpi.png
│ │ │
│ │ ├───bada
│ │ │ icon-128.png
│ │ │
│ │ ├───bada-wac
│ │ │ icon-48-type5.png
│ │ │ icon-50-type3.png
│ │ │ icon-80-type4.png
│ │ │
│ │ ├───blackberry
│ │ │ icon-80.png
│ │ │
│ │ ├───ios
│ │ │ icon-57-2x.png
│ │ │ icon-57.png
│ │ │ icon-72-2x.png
│ │ │ icon-72.png
│ │ │
│ │ ├───tizen
│ │ │ icon-128.png
│ │ │
│ │ ├───webos
│ │ │ icon-64.png
│ │ │
│ │ └───windows-phone
│ │ icon-173-tile.png
│ │ icon-48.png
│ │ icon-62-tile.png
│ │
│ └───screen
│ ├───android
│ │ screen-hdpi-landscape.png
│ │ screen-hdpi-portrait.png
│ │ screen-ldpi-landscape.png
│ │ screen-ldpi-portrait.png
│ │ screen-mdpi-landscape.png
│ │ screen-mdpi-portrait.png
│ │ screen-xhdpi-landscape.png
│ │ screen-xhdpi-portrait.png
│ │
│ ├───bada
│ │ screen-portrait.png
│ │
│ ├───bada-wac
│ │ screen-type3.png
│ │ screen-type4.png
│ │ screen-type5.png
│ │
│ ├───blackberry
│ │ screen-225.png
│ │
│ ├───ios
│ │ screen-ipad-landscape-2x.png
│ │ screen-ipad-landscape.png
│ │ screen-ipad-portrait-2x.png
│ │ screen-ipad-portrait.png
│ │ screen-iphone-landscape-2x.png
│ │ screen-iphone-landscape.png
│ │ screen-iphone-portrait-2x.png
│ │ screen-iphone-portrait-568h-2x.png
│ │ screen-iphone-portrait.png
│ │
│ ├───tizen
│ │ README.md
│ │
│ ├───webos
│ │ screen-64.png
│ │
│ └───windows-phone
│ screen-portrait.jpg
│
└───spec
│ helper.js
│ index.js
│
└───lib
└───jasmine-1.2.0
jasmine-html.js
jasmine.css
jasmine.js
MIT.LICENSE
c:\dev\temp\cordova-test\pg>
The main differences are:
- PhoneGap puts the
config.xml
file inside of thewww
directory, whereas Cordova puts it in the root directory.- At one point that I tried this actually meant you could't use Cordova anymore unless you had the
.cordova
directory with theconfig.json
file as shown below, but in trying it since it does work so maybe that was a bug that got fixed?
- At one point that I tried this actually meant you could't use Cordova anymore unless you had the
- PhoneGap adds a bunch of PhoneGap specific elements and attributes to
config.xml
- PhoneGap includes a bunch of icon and splash screen resources in a
www/res
folder, but includes.pgbomit
in there so they don't add weight to the final binary if packaged using PhoneGapBuild - PhoneGap includes unit testing files