commit | 3d21f05e4195e4b5363b419306e75f2268c362e6 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sun Jun 17 14:28:38 2018 +0200 |
committer | GitHub <noreply@github.com> | Sun Jun 17 14:28:38 2018 +0200 |
tree | 35f5d016011e3846708d5f8b4d62d14dae0fb965 | |
parent | 0145473a3ac4f059d5f2212d219e12a4e8885aff [diff] |
Refactor tests (#16) * Factor out common checks * Check more artifacts * Simplify Checks Co-authored-by: Christopher J. Brody <brodybits@litehelpers.net> Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
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: '' } } };