commit | 2721c00a20d722422e38ef47b6ddff4cff456d15 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Tue Jan 17 17:54:41 2017 -0800 |
committer | Steve Gill <stevengill97@gmail.com> | Tue Jan 17 17:54:41 2017 -0800 |
tree | 28c918de639056cf63bb9d52e536cfc253b21871 | |
parent | f69198e5ab49f40bf1e3dda5e5a64bc75e4f837e [diff] |
CB-12358 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: '' } } };