commit | e9532316e55e9e8c8bdf0e9c68076142f9dca938 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sun Jun 17 15:04:24 2018 +0200 |
committer | GitHub <noreply@github.com> | Sun Jun 17 15:04:24 2018 +0200 |
tree | db4e44904f025dd4aa8e44545b5c84e173454f5c | |
parent | 3d21f05e4195e4b5363b419306e75f2268c362e6 [diff] |
Drop support for reading from .cordova/config.json (#18) Resolves §2 from apache/cordova-discuss#89
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: '' } } };