commit | 266217f8f35cf6df998a753f5fc48286370fc976 | [log] [tgz] |
---|---|---|
author | Steve Gill <stevengill97@gmail.com> | Mon May 01 13:37:47 2017 +0200 |
committer | Steve Gill <stevengill97@gmail.com> | Mon May 01 14:37:58 2017 +0200 |
tree | 7b8de893af29692fa897e04b75fbe019628916e5 | |
parent | 393118f9009c2931a23a528bac73b5e35aab2c52 [diff] |
CB-10681: added test to confirm we aren't using cached 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: '' } } };