commit | 0145473a3ac4f059d5f2212d219e12a4e8885aff | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Sun Jun 03 19:34:13 2018 +0200 |
committer | GitHub <noreply@github.com> | Sun Jun 03 19:34:13 2018 +0200 |
tree | fc9736edde9a396f54b65daa644d91ecbcaf0411 | |
parent | 5435b9a9119a24268ac73143daaa49dc424db592 [diff] |
Fix error messages for toExist matcher (#15) The message in case of failure was negated.
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: '' } } };