commit | 27ea36ec1d7c66666fa3fd00af9bd77158988c36 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Tue Oct 15 18:25:22 2019 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Wed Oct 16 13:07:25 2019 +0200 |
tree | c8099eb02b5ea2976f57f2278e83147b7e97d7ff | |
parent | e6e3bd51ee79e215ba7d3150716450b629c1b1b2 [diff] |
Use either opts.events or a no-op for logging (§4) Fixes #23
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: '' } } };