commit | 615a5f729546130a726ca1ed051979820550849e | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Fri May 11 14:42:47 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Sat May 12 18:00:33 2018 +0200 |
tree | fd0847b7245f570a7de6b4ff9098cb0cc1c62486 | |
parent | 89e05ae47cefca4ba22fe514d3fa93f42c91ac89 [diff] |
Remove defaults assignment to unused config keys
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: '' } } };