You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2015/04/30 05:57:05 UTC

[jira] [Resolved] (CB-8934) cordova.config not being used during cordova.create

     [ https://issues.apache.org/jira/browse/CB-8934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Gill resolved CB-8934.
----------------------------
    Resolution: Fixed

Fixed the issue. Now config.json will get merged into cfg object. cfg takes preference though. 

Downstreams might encounter this bug. Ran into this problem because the PhoneGap-CLI was using config.json to set templates. 

> cordova.config not being used during cordova.create
> ---------------------------------------------------
>
>                 Key: CB-8934
>                 URL: https://issues.apache.org/jira/browse/CB-8934
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 5.0.0
>            Reporter: Steve Gill
>            Assignee: Steve Gill
>             Fix For: 5.0.1
>
>
> With the recent changes of getting cordova app-hello-world from npm, cordova.config stopped being used during cordova create. 
> The offending line is https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/create.js#L58
> Issue is, by the time it reaches that line, cfg is always {} if no config was passed in via the command line. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org