commit | 21b142ca54c02db5bcac0c6f15ce1aba9e3d5916 | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Wed Oct 30 17:54:59 2019 +0900 |
committer | GitHub <noreply@github.com> | Wed Oct 30 17:54:59 2019 +0900 |
tree | 47b308595ffa1d38886054ae7582cfa9d4718384 | |
parent | e6e3bd51ee79e215ba7d3150716450b629c1b1b2 [diff] |
chore: update nyc dev dependency (#41)
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: '' } } };