commit | 9dc360d0d2089574e07ddf724d9290d3a7055234 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sat May 12 17:43:11 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Sun May 13 21:18:00 2018 +0200 |
tree | bee1ee60eeed016ae341b8cdea74234a27b4e711 | |
parent | d34c65cb211355d495c9fa530661a869539ca1f7 [diff] |
Disable regular console output during 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: '' } } };