Apache Cordova Create

Clone this repo:
  1. 4475a50 chore(deps): bump the gh-actions-patch-minor group with 2 updates (#159) by dependabot[bot] · 3 weeks ago master
  2. 2b08070 chore(deps): bump the gh-actions-patch-minor group with 2 updates (#158) by dependabot[bot] · 4 weeks ago
  3. 1543ee3 chore(deps): bump postcss-selector-parser from 7.1.5 to 7.1.6 (#157) by dependabot[bot] · 5 weeks ago
  4. d52993d chore(deps): bump the gh-actions-patch-minor group with 3 updates (#155) by dependabot[bot] · 5 weeks ago
  5. 3021341 chore(deps-dev): bump brace-expansion from 1.1.18 to 1.1.21 (#154) by dependabot[bot] · 7 weeks 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
}