commit | f85490a9e2ce44bf93a4d0dc688d85ac863d0e8b | [log] [tgz] |
---|---|---|
author | エリス <ellis.bryan@gmail.com> | Mon Jan 07 14:41:59 2019 +0900 |
committer | エリス <ellis.bryan@gmail.com> | Mon Jan 07 14:41:59 2019 +0900 |
tree | d7238479df4719c320b1d6d8b80ac5ebe1650f0d | |
parent | 646a6a47e452bb046c25024cb8d0174c3cbdedab [diff] |
GH-10 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: '' } } };