commit | 386f518268c60949030e87805863fe888a71c74f | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Mon Jan 07 13:04:34 2019 +0900 |
committer | GitHub <noreply@github.com> | Mon Jan 07 13:04:34 2019 +0900 |
tree | 5f6203dc57d8ed2dd265654d9f37740b2b2c4378 | |
parent | 4c273098ad68c158ac568014a6fbf93b0539ecc7 [diff] | |
parent | 0e9c075954a7f5bcfae8536f2ec375cadc465d72 [diff] |
Merge pull request #38 from erisu/cordova9-dep-bump-2 Cordova 9: Cordova & External Dependencies Bump
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: '' } } };