Apache Cordova Create

Clone this repo:
  1. 254a49a chore(deps): Update npm deps, add Node 20 to CI (#86) by Darryl Pogue · 3 weeks ago master
  2. 3280edc ci: update codecov@v4 w/ token (#87) by エリス · 3 weeks ago
  3. d4a7c87 chore: increment package version to 5.0.1-dev by Erisu · 12 months ago
  4. d5c0786 release(5.0.0): updated release notes & version (create-5.0.0) by Erisu · 12 months ago 5.0.x 5.0.0 rel/5.0.0
  5. cd8613b dep!: bump all possible packages (#82) by エリス · 1 year, 1 month 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
}