commit | fedf61a6b6f35d5124813ac5b6314ca090aec165 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Mon Jun 04 22:10:44 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Wed Oct 16 13:09:46 2019 +0200 |
tree | 4f443f68cbec4f84a2f954efdf437e8f9df93872 | |
parent | a3bcb5f9f126b5d8f5668af67b80fac53a14d1da [diff] |
Do not copy "missing" files from default template (§5) Fixes #24 Also don't create empty platforms & plugins dirs. These will be created by Cordova when required.
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: '' } } };