commit | 646a6a47e452bb046c25024cb8d0174c3cbdedab | [log] [tgz] |
---|---|---|
author | エリス <ellis.bryan@gmail.com> | Mon Jan 07 14:40:38 2019 +0900 |
committer | エリス <ellis.bryan@gmail.com> | Mon Jan 07 14:40:38 2019 +0900 |
tree | f26936614193383ab6a70238459272b576116137 | |
parent | 386f518268c60949030e87805863fe888a71c74f [diff] |
GH-10 Updated version and RELEASENOTES.md for release 2.0.0
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: '' } } };