commit | 86b05858e7abb428c66365786b742d64c1472cf5 | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Thu Jul 05 22:54:59 2018 +0200 |
committer | GitHub <noreply@github.com> | Thu Jul 05 22:54:59 2018 +0200 |
tree | 23e12bd8e1180491063e208156e5dbe0a45b7f72 | |
parent | b990ac824fe6ed2d81043d3a2432ec43a1602a10 [diff] | |
parent | 227ab6632af209d52a6f80fbec12bbf4b9348a21 [diff] |
Merge pull request #20 from raphinesse/cleanup-2 Further non-breaking cleanup & improvements
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: '' } } };