Apache Cordova Create

Clone this repo:
  1. f5793b8 chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 (#91) by dependabot[bot] · 3 weeks ago master
  2. c6ff252 chore(deps): bump micromatch from 4.0.5 to 4.0.8 (#90) by dependabot[bot] · 7 weeks ago
  3. bf0d6a0 chore(deps): bump braces from 3.0.2 to 3.0.3 (#88) by dependabot[bot] · 6 months ago
  4. 254a49a chore(deps): Update npm deps, add Node 20 to CI (#86) by Darryl Pogue · 8 months ago
  5. 3280edc ci: update codecov@v4 w/ token (#87) by エリス · 8 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
}