|
|
před 5 roky | |
|---|---|---|
| .. | ||
| CONTRIBUTING.md | před 5 roky | |
| LICENSE | před 5 roky | |
| NOTICE | před 5 roky | |
| README.md | před 5 roky | |
| RELEASENOTES.md | před 5 roky | |
| index.js | před 5 roky | |
| package.json | před 5 roky | |
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);
destRequired. Path to the destination where the project will be created. Must be an empty dir if it exists.
optsOptional. 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
}