[
https://issues.apache.org/jira/browse/CB-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098548#comment-14098548
]
Ian Clelland commented on CB-4650:
----------------------------------
I see what you mean, looking at the repo structure (I'm looking at
cordova-wp8/wp8/template; let me know if I'm way off base)
The parts that seem to correspond closely to the project template in that
folder are those parts that have to be customized for the application:
{panel}
App.xaml
App.xaml.cs
ApplicationIcon.png
Background.png
Images/
MainPage.xaml
MainPage.xaml.cs
MyTemplate.vstemplate
Properties/
SplashScreenImage.jpg
__PreviewImage.jpg
__TemplateIcon.png
{panel}
(Although I'm not sure about Images/ -- I think it depends on whether an app
would reasonably want to customize those; they look pretty standard)
If there were a way to specify a directory that just contained custom versions
of those files, and then cordova and cordovalib themselves were copied from the
canonical sources (and www copied from wherever the user asked) then that's
exactly what I'd expect from a templateDir argument.
> 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)