You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ian Clelland (JIRA)" <ji...@apache.org> on 2013/08/23 17:06:53 UTC
[jira] [Created] (CB-4651) CLI: Default native project templates
should be overridable at project creation time
Ian Clelland created CB-4651:
--------------------------------
Summary: 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