christian 4571a14169 android fix | 4 年 前 | |
---|---|---|
.. | ||
node_modules | 4 年 前 | |
CONTRIBUTING.md | 4 年 前 | |
LICENSE | 4 年 前 | |
NOTICE | 4 年 前 | |
README.md | 4 年 前 | |
RELEASENOTES.md | 4 年 前 | |
index.js | 4 年 前 | |
package.json | 4 年 前 |
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
}