cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11412) Update template implementation in cordova create --template
Date Fri, 24 Jun 2016 21:26:16 GMT


ASF GitHub Bot commented on CB-11412:

GitHub user carynbear opened a pull request:

    CB-11412 template support for www folders

    @stevengill yay but also need to merge the cordova-cli!

You can merge this pull request into a Git repository by running:

    $ git pull CB-11412-remove-linking

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #458
commit 086c9913682cd82d1d364621f4dfa8322985e263
Author: carynbear <>
Date:   2016-06-24T21:22:17Z

    CB-11412 template support for www folders


> Update template implementation in cordova create --template
> -----------------------------------------------------------
>                 Key: CB-11412
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaLib
>            Reporter: Caryn Tran
>            Assignee: Caryn Tran
> Sometimes we do want a `package.json` copied over. `package.json` could have build scripts
that are essential for the template to work. To handle this use case, template authors are
suggested to put template files in a subdirectory and point to that subdirectory in index.js.
All files in the subdirectory are copied over.
> Update the current template implementation to ignore the list of files above that shouldn't
be copied over when using `--template`. If a subdirectory is used, copy the entire contents
of the subdirectory.
> If a `package.json` exists in the subdirectory, we should update its fields like we do
to `config.xml`.
Only field to update in `package.json` should be ``. `` should be
updated to use `` lowercased (npm package names have to be lowercase). ``
is the optional third argument `cordova create` takes.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message