You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "JennyGee (JIRA)" <ji...@apache.org> on 2013/11/01 21:24:17 UTC
[jira] [Created] (CB-5248) Adding additional arguments for 'cordova
create' will break your project
JennyGee created CB-5248:
----------------------------
Summary: Adding additional arguments for 'cordova create' will break your project
Key: CB-5248
URL: https://issues.apache.org/jira/browse/CB-5248
Project: Apache Cordova
Issue Type: Bug
Components: CLI
Reporter: JennyGee
Priority: Minor
According to the help docs cordova has the following for create:
create <PATH> [ID] [NAME] where ID and NAME are optional.
When you add an additional parameter after NAME, you get a error stating that it doesn't understand the last parameter. On the other hand the cordova project appears to be created properly. But when you have a look at the actual project, it's actually broken:
myMachine:cordovaTest jgee$ cordova create newDir newPackage app1 app2
Creating a new cordova project with name "app1" and id "newPackage" at location "../cordovaTest/newDir"
[TypeError: Object.keys called on non-object]
myMachine:cordovaTest jgee$ cd newDir/
ci0000003068684:newDir jgee$ ls
merges platforms plugins www
myMachine:newDir jgee$ cordova info
{ [Error: ENOENT, no such file or directory '..cordovaTest/newDir/www/config.xml']
errno: 34,
code: 'ENOENT',
path: '..cordova/newDir/www/config.xml',
syscall: 'open' }
--
This message was sent by Atlassian JIRA
(v6.1#6144)