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

Andrew Grieve commented on CB-4153:
-----------------------------------

Just chatted with Michal and came up with a modified proposal.

Some background:
 * `id` and `version` are used only for constructing the path to lazily 
download the resource to (within your ~/.cordova directory).
 * --path (or a better name: --source) could point at a git URL


Proposal:
 1. For app templates passed via the command line, never cache them within 
~/.cordova
 2. For app templates passed via the config (JS API), cache them only when an 
ID and Version are supplied

Rationale:
 * If a user specifies a local path via --source, then there is no benefit to 
symlinking it within ~/.cordova.
 * If a user specifies a URL via --source, then they should expect it to be 
downloaded.
 * If a user wants a URL to be cached, they should download it themselves and 
use --source=local/path.




                
> 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