[ 
https://issues.apache.org/jira/browse/CB-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753188#comment-13753188
 ] 

Michal Mocny commented on CB-4153:
----------------------------------

Been thinking about this one recently.  For mobile chrome apps we ended up 
using a solution originally proposed by Michael Brooks (and as used in PhoneGap 
CLI) -- namely, to pre-create the {app}/.cordova/config.json and set the 
{lib:{www:{..}} values.

The issue with doing this from the command line, is that there are (currently) 
three parameters: path, id, version.  This means with the current proposal we 
would need to create command to look like `cordova create --path=... --id=... 
--version=...` which I think is just too verbose.

I consider there to be a better alternative:  Instead of passing default www 
template parameters from the command line, why not just pass the path to a 
default config file: `cordova create --config=...`.  I think that could have 
longer term value, anyway.
                
> Add ability to select default app template at "cordova create" time
> -------------------------------------------------------------------
>
>                 Key: CB-4153
>                 URL: https://issues.apache.org/jira/browse/CB-4153
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0
>            Reporter: Michal Mocny
>            Assignee: Filip Maj
>
> Proposal, Implement src flag to cordova create:
> cordova create --src=...
> Where src is:
> * a valid path to a web app
> * from a set of special values, perhaps including:
>   - default
>   - blank
>   - spec
>   - easteregg

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to