commit | 4f4987ed59950c60751925d1bbe328f2c3363cf2 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Mon May 14 18:37:11 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Mon May 14 19:59:04 2018 +0200 |
tree | c06253c2f3db7ad7a457dc853d4f6708f5ff7387 | |
parent | 12c99c983de0c13dbc517bde5ecfec7cf66c8d2f [diff] |
Move configs to corresponding test cases
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: '' } } };