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

Ian Clelland commented on CB-4650:
----------------------------------

On Android and iOS, there are four parts that come into building a very simple 
Cordova application:

# The create / build / run scripts, which live in a cordova/ or bin/cordova/ 
directory. These are usually bash or node scripts.
# The web assets, for example, the Hello World app. This is all HTML, CSS and 
JavaScript.
# The Cordova library itself, which is all native code, except for cordova.js, 
which provides the web side of the bridge.
# The project template, which is a very very small native wrapper around 
cordova lib, which needs to be customized for the application.

This issue is about the last one, the project template. This template gets 
copied out of the templatePath, has some strings replaced (like the app name 
and it's package name), and then it "is" the top-level-app, from the device's 
point of view. On Android and iOS, it uses the Cordova library and the web 
assets to do almost everything; it's just a shell that creates a web view and 
loads the right content into it on startup.

If you need to compare for WP, then on 
[Android|https://github.com/apache/cordova-android/tree/master/bin/templates/project]
 and 
[iOS|https://github.com/apache/cordova-ios/tree/master/bin/templates/project], 
this lives in /bin/templates/project.

> Default native project templates should be overridable at project creation 
> time
> -------------------------------------------------------------------------------
>
>                 Key: CB-4650
>                 URL: https://issues.apache.org/jira/browse/CB-4650
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: WP8
>    Affects Versions: 3.0.0
>            Reporter: Ian Clelland
>            Assignee: Jesse MacFadyen
>
> The default native-code project templates for each platform should not be 
> unconditionally installed by the create scripts.
> There should be a command line option to specify the directory where the 
> project template can be found. If not present, then the default template 
> should be used.
> Custom templates should be subject to the same string substitution as their 
> default counterparts, so that it is easy to start a custom template as a 
> simple copy of the default.
> For platforms with a standard 'create' script, we can add a fourth argument 
> for the project template directory.
> {{bin/create [folder] [[packageName] [[appName] [templateDir]]]}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to