Apache Cordova Create

Clone this repo:
  1. 0bf04ce ci: add node 14 to workflow (#66) by エリス · 8 weeks ago master
  2. 17dd4af Updated RELEASENOTES.md & version for release 3.0.0 (create-3.0.0) by Erisu · 4 months ago 3.0.x 3.0.0 rel/3.0.0
  3. b6558e8 chore(npm): bump dependencies w/ rebuilt package-lock (#65) by エリス · 4 months ago
  4. fcc799b chore(asf): update git notification settings by Erisu · 5 months ago
  5. 5f24bdb refactor: small syntax changes (#64) by エリス · 5 months ago

cordova-create

NPM

Node CI codecov.io

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.

Usage

const create = require('cordova-create');
await create(dest, opts);

Parameters

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
}