commit | 1f44163585caeb08d014c335096a004333b0e1a7 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sun May 13 21:10:18 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Sun May 13 21:18:00 2018 +0200 |
tree | 6fd21ec428a42a06a58e60693288a3d377b755a1 | |
parent | 391fbb6848ee32dff908010abd4c2281e59ac0f1 [diff] |
Use os.homedir to get home dir
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: '' } } };