commit | 8ff490ceda980d2595071ec843835baf9341ed35 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Thu Dec 14 13:43:45 2017 -0800 |
committer | Steve Gill <stevengill97@gmail.com> | Thu Dec 14 13:43:45 2017 -0800 |
tree | 60820c908da2b31fa4b785de5131bf8dd26cc31b | |
parent | 64f1385d6947da9147f2380ee27fdd65e1343413 [diff] |
CB-13674 Incremented package version to -dev
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: '' } } };