commit | 71e66fe6af4035cfa5d22dcd96670151758b36b5 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sun Jun 17 15:26:38 2018 +0200 |
committer | GitHub <noreply@github.com> | Sun Jun 17 15:26:38 2018 +0200 |
tree | 3d649cc3f2c0fc699595acd4488de7562cdf3293 | |
parent | e9532316e55e9e8c8bdf0e9c68076142f9dca938 [diff] |
CB-14140 Use fs-extra instead of shelljs (#19) Co-authored-by: Christopher J. Brody <brodybits@litehelpers.net> Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
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: '' } } };