commit | 49e6abc7adce124481be658f4ddbba1cfa3cc080 | [log] [tgz] |
---|---|---|
author | Jan Piotrowski <piotrowski+git@gmail.com> | Mon Feb 11 18:36:49 2019 +0100 |
committer | Jan Piotrowski <piotrowski+git@gmail.com> | Mon Feb 11 18:36:49 2019 +0100 |
tree | 843c53e0157190a9421d3637678c6a0cbe2c01b3 | |
parent | f85490a9e2ce44bf93a4d0dc688d85ac863d0e8b [diff] |
Add or update GitHub pull request and issue template
This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.
var create = require('cordova-create'); create(dir, id, name, cfg, extEvents);
dir
- directory where the project will be created. Required.id
- app id. Required (but can be “undefined”).name
- app name. Required (but can be “undefined”).cfg
- extra config to be saved in .cordova/config.json Required (but can be “{}”).extEvents
- An EventEmitter instance that will be used for logging purposes. Required (but can be “undefined”).An example of cfg
which would fetch a cordova template from npm (or git):
var cfg = { lib: { www: { template: true, url: 'cordova-app-hello-world', version: '' } } };