commit | 234e5232dc1c97afebeb0ac580f6d62bd480c606 | [log] [tgz] |
---|---|---|
author | Chris Brody <chris.brody@gmail.com> | Wed Sep 12 13:09:49 2018 -0400 |
committer | GitHub <noreply@github.com> | Wed Sep 12 13:09:49 2018 -0400 |
tree | 8c23095b865782ed43dd69f922cd7bbdee192253 | |
parent | c772d1e159a59cb3644af02d704e38a1a95d522d [diff] |
Mark 2.0.0-dev (major update) (#27)
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: '' } } };