commit | b61f8706c7b3568e1a64fbab6daf9af8ea2b7fd5 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Fri Sep 02 11:19:36 2016 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Fri Sep 02 11:19:36 2016 -0700 |
tree | 73ec9416e92c2cebdcda7157b767495cb8df6b30 | |
parent | 2cc4e1f18acb748dcd04ef5735d0395fa46d9230 [diff] |
removed stripping eventlisteners
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: '' } } };