commit | f40c995714e52a848ba16cb012d6091a008d0fed | [log] [tgz] |
---|---|---|
author | Chris Brody <chris.brody@gmail.com> | Wed Sep 12 13:31:44 2018 -0400 |
committer | GitHub <noreply@github.com> | Wed Sep 12 13:31:44 2018 -0400 |
tree | 1c9aad882bf21de7c761099d4a93360c663152b4 | |
parent | cf4a88a293becc72875ad844067cd1a7bae7ccca [diff] |
Fix version in package-lock.json (#30)
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: '' } } };