commit | a20336d975a8e1ea02f182b89bdb606382921b77 | [log] [tgz] |
---|---|---|
author | Shazron Abdullah <shazron@gmail.com> | Mon Apr 17 22:31:09 2017 -0700 |
committer | Shazron Abdullah <shazron@gmail.com> | Mon Apr 17 22:52:31 2017 -0700 |
tree | c25207a241336a3f9db2b46ab968b624c9d80249 | |
parent | 09b8c926cbfcce7f364536cefd8a7bc99a989ea8 [diff] |
CB-12662 - Update cordova-common dependency version to 2.0.2 This closes #4
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: '' } } };