commit | 5f24bdbceba46830a46dc940306688b2d71f447a | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Fri Apr 17 18:54:18 2020 +0900 |
committer | GitHub <noreply@github.com> | Fri Apr 17 18:54:18 2020 +0900 |
tree | 772bea8f44de727d2c8a50fc6fc250e25c578299 | |
parent | a399529d4b2dc1cbf88f949f5fdc0d3f9101b0b2 [diff] |
refactor: small syntax changes (#64) * refactor: transform var to let & const * refactor: small formatting changes * refactor: transform arrow functions
This module is used for creating Cordova style projects. It also incudes support for Cordova App 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 }