commit | 7e40c4558ad8ff018a6f8c272a2cbd5e7715691b | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Fri May 11 04:28:26 2018 +0200 |
committer | Shazron Abdullah <shazron@gmail.com> | Fri May 11 10:28:26 2018 +0800 |
tree | eb30277bc781e44cbfd486b3d23ab009e8a3412b | |
parent | 8ff490ceda980d2595071ec843835baf9341ed35 [diff] |
Update node versions for CI and drop support for node 4 (#12)
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: '' } } };