commit | 575ea95e58dc69a63d733767fd66422d7d7e9d40 | [log] [tgz] |
---|---|---|
author | Audrey So <audreyso@apache.org> | Mon Oct 30 09:48:43 2017 -0700 |
committer | Audrey So <audreyso@apache.org> | Mon Oct 30 09:48:43 2017 -0700 |
tree | 9b9c042666db2a1835bee059766fa000cc9abf36 | |
parent | b5877e51c160f5df5518151a806a6a0481137902 [diff] |
CB-13501 : added support for node 8
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: '' } } };