commit | e2223d1691eb4955cce3fae850fe3610019d8dd5 | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Tue Nov 05 17:52:48 2019 +0900 |
committer | GitHub <noreply@github.com> | Tue Nov 05 17:52:48 2019 +0900 |
tree | 91259a88518f7e195006169c62da1f2f0fc9165b | |
parent | fd543ac2695f2834c6f5f92875186de974b665c7 [diff] | |
parent | e8124427a07a3cf9eaeeb116c70ca5e6b7ced306 [diff] |
Merge pull request #40 from raphinesse/breaking-changes Major usability & maintainability improvements
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 }