commit | e8124427a07a3cf9eaeeb116c70ca5e6b7ced306 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Mon Oct 21 14:25:24 2019 +0200 |
committer | GitHub <noreply@github.com> | Mon Oct 21 14:25:24 2019 +0200 |
tree | 0f71d487f9c692ac28427d8b5a141bf30e43bf38 | |
parent | 995897c162b9e1f773c94289c597e3239538e39e [diff] |
Write package.json with indentation of 2 As is the default behavior of npm. When it's finished, we should use https://github.com/apache/cordova-common/pull/34 here. Co-Authored-By: エリス <erisu@users.noreply.github.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.
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 }