commit | 995897c162b9e1f773c94289c597e3239538e39e | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Tue Oct 15 21:02:55 2019 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Wed Oct 16 13:31:37 2019 +0200 |
tree | e70becef728f5d824f99a1fcad542a8fdd682f6f | |
parent | 79dcd303878d0a3ae77750817c810a5124890fa0 [diff] |
Simplify interface of main export (§1) Fixes #21
This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.
const create = require('cordova-create'); await create(dest, opts);
dest
Required. Path to the destination where the project will be created. Must be an empty dir if it exists.
opts
Optional. Supports following properties.
{ // Attributes to be set in package.json & config.xml id: String, name: String, version: String, // The path/url/package-name to the template that should be used template: String, // An EventEmitter instance that will be used for logging purposes // (actually it only needs to implement a compatible `emit` method) events: EventEmitter }