commit | d121a255e0e5cff8e8415ee1613b66a5a8a0396a | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Tue May 15 00:19:08 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Wed May 16 00:04:47 2018 +0200 |
tree | 635f31fcb88a7539b71cbcea6530c3e799832889 | |
parent | 102ad58327a4818005720036a2971a7ade2ee92f [diff] |
Improve test coverage
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: '' } } };