Apache Cordova Create

Clone this repo:
  1. 2c88579 Merge pull request #136 from apache/dependabot/npm_and_yarn/brace-expansion-1.1.18 by Manuel Beck · 3 days ago master
  2. 4f4360b chore(deps-dev): bump brace-expansion from 1.1.14 to 1.1.18 by dependabot[bot] · 4 days ago
  3. 1e8d815 chore(deps): bump sigstore from 4.1.0 to 4.1.1 (#132) by dependabot[bot] · 4 days ago
  4. d16da2b chore(deps): bump @sigstore/verify from 3.1.0 to 3.1.1 (#131) by dependabot[bot] · 4 days ago
  5. aad5812 chore(deps-dev): bump js-yaml from 4.2.0 to 4.3.1 (#135) by dependabot[bot] · 4 days ago

cordova-create

NPM

Node CI Release Audit 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
}