commit | cf633c2ee7ef46ee28d5baa4a53e71f84d9c894b | [log] [tgz] |
---|---|---|
author | Audrey So <audreyso@apache.org> | Mon Jun 12 14:51:50 2017 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Wed Dec 13 16:30:54 2017 -0800 |
tree | 224f13160fa07dae1e9e99c18710483f18a9595a | |
parent | 53d5894c849193073e65727033e27c8d2e428ac8 [diff] |
CB-12807 : updated error message to follow the template guide
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: '' } } };