commit | 5435b9a9119a24268ac73143daaa49dc424db592 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Thu May 24 22:28:25 2018 -0700 |
committer | GitHub <noreply@github.com> | Thu May 24 22:28:25 2018 -0700 |
tree | 711edbb0137b5ba7ad5a60102279fbe2858928fc | |
parent | 7e40c4558ad8ff018a6f8c272a2cbd5e7715691b [diff] | |
parent | 403b9f5c55fae5cad861eac39839fc97a4d9d6d4 [diff] |
Merge pull request #13 from raphinesse/cleanup Major code cleanup
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: '' } } };