commit | 33611940b859f68eb3d03adbdb310b7121ea0737 | [log] [tgz] |
---|---|---|
author | エリス <ellis.bryan@gmail.com> | Wed Dec 26 14:27:43 2018 +0900 |
committer | エリス <ellis.bryan@gmail.com> | Wed Dec 26 21:05:19 2018 +0900 |
tree | c57bdca2516da38122d50ab5c8763d355e070bf8 | |
parent | 9b93ae30537fae1e966d581b98fb5bf9ea1cd97b [diff] |
Updated Package Dependencies - fs-extra@^7.0.1 - import-fresh@^3.0.0 * Rebuilt package-lock.json
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: '' } } };