commit | 1eaf74d9f65830a736c1c0628e2f2c0b6a245aa5 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Mon May 14 18:39:35 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Mon May 14 19:59:04 2018 +0200 |
tree | c88417b6b7c28099043b8bf7432730a1c28b22b3 | |
parent | 4f4987ed59950c60751925d1bbe328f2c3363cf2 [diff] |
Use global fixtures for invalid-ID tests too
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: '' } } };