You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/08/23 17:59:51 UTC

[jira] [Commented] (CB-4651) CLI: Default native project templates should be overridable at project creation time

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

ASF subversion and git services commented on CB-4651:
-----------------------------------------------------

Commit 6036bc44037b2d3e0fec40b5c9473741732e8ece in branch refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=6036bc4 ]

CB-4651: Allow default project template to be overridden by config.json

                
> CLI: Default native project templates should be overridable at project creation time
> ------------------------------------------------------------------------------------
>
>                 Key: CB-4651
>                 URL: https://issues.apache.org/jira/browse/CB-4651
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: CLI
>            Reporter: Ian Clelland
>            Assignee: Ian Clelland
>
> As part of CB-4650, CLI should be capable of overriding the project templates for any and all platforms as they are added to a project.
> We should extend the {{config.json}} file format to add a "{{template}}" key to each platform that specifies the project template directory to pass to the underlying platform-specific {{create}} command.
> Example:
> {code}
> {
>   "id":"com.example.newproject",
>   "name":"newproject",
>   "lib": {
>     "android": {
>       "uri": "https://git-wip-us.apache.org/repos/asf?p=cordova-android.git",
>       "version": "3.1.0",
>       "id": "cordova-android-3.1.0",
>       "template": "/home/example/cordova-templates/android"
>     },
>     "ios": {
>       "uri": "https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git",
>       "version": "3.1.0",
>       "id": "cordova-ios-3.1.0",
>     },
>     "wp8": {
>       "uri": "https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git",
>       "version": "3.1.0",
>       "id": "cordova-wp8-3.1.0",
>       "template": "/home/example/cordova-templates/wp8"
>     }
>   }
> }
> {code}
> This will instruct CLI to use custom templates for two platforms, and the default template for iOS.

--
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