commit | cf4a88a293becc72875ad844067cd1a7bae7ccca | [log] [tgz] |
---|---|---|
author | Chris Brody <chris.brody@gmail.com> | Wed Sep 12 13:21:20 2018 -0400 |
committer | GitHub <noreply@github.com> | Wed Sep 12 13:21:20 2018 -0400 |
tree | a5278a1cf89a4fae9967dd40c7d2a8d35c05d9da | |
parent | 234e5232dc1c97afebeb0ac580f6d62bd480c606 [diff] |
Commit package-lock.json (#28) As agreed in apache/cordova#4
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: '' } } };