commit | a60bfa309115dd6f7079dd6af3165e8214d96a08 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Thu May 04 17:31:25 2017 +0200 |
committer | Steve Gill <stevengill97@gmail.com> | Thu May 04 17:34:57 2017 +0200 |
tree | 5b8d01d72e58cede09b5477111754a82ed280efd | |
parent | 37d329dbb4467ce2f5cb1205b9248de745397902 [diff] |
CB-12765: default app cordova-app-hello-world is now treated like a template
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: '' } } };