commit | 892243aa8ccf69316ea37b53c80994e1bc27e911 | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Wed Oct 30 15:49:16 2019 +0100 |
committer | GitHub <noreply@github.com> | Wed Oct 30 15:49:16 2019 +0100 |
tree | 6f6e0844755dec02f97a074aae2d6840b59a15aa | |
parent | 21b142ca54c02db5bcac0c6f15ce1aba9e3d5916 [diff] |
Replace http URLs in package-lock.json w/ https (#45)
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: '' } } };