commit | 37d329dbb4467ce2f5cb1205b9248de745397902 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Tue May 02 02:05:08 2017 +0200 |
committer | Steve Gill <stevengill97@gmail.com> | Tue May 02 02:05:08 2017 +0200 |
tree | 4190cf3a3db6a14513e5d5f88e191abebedd5f41 | |
parent | af9ad26ec89a81d83a12407323a489b5ea3354a9 [diff] |
CB-12747 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: '' } } };