commit | 74ec36a180f8bd7b32c5591d98fdfcb82ef4c6c5 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Wed May 09 13:10:25 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Fri May 11 11:20:37 2018 +0200 |
tree | 9bf45ae13f25ff0a5345776e09e8a57844fb1ce1 | |
parent | 8943e1fac4e61575e77bd234d5a286dbb34b9350 [diff] |
Remove dead code to update .cordova/config.json
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: '' } } };