commit | 403b9f5c55fae5cad861eac39839fc97a4d9d6d4 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Wed May 16 23:15:48 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Mon May 21 02:38:01 2018 +0200 |
tree | 711edbb0137b5ba7ad5a60102279fbe2858928fc | |
parent | 495fe4952da8a1ad8f43cb6c000d5c49c024c2e9 [diff] |
Use nicer and unique tmpDir name for tests
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: '' } } };