Apache Cordova Create

Clone this repo:
  1. 5b461ef chore(deps): bump lodash from 4.17.23 to 4.18.1 (#121) by dependabot[bot] · 18 hours ago master
  2. c0f8679 chore(deps): bump @xmldom/xmldom from 0.8.11 to 0.8.12 (#120) by dependabot[bot] · 10 days ago
  3. c2f8e14 chore(deps-dev): bump brace-expansion from 1.1.12 to 1.1.13 (#119) by dependabot[bot] · 2 weeks ago
  4. bda2d77 chore(deps): bump picomatch (#118) by dependabot[bot] · 2 weeks ago
  5. fbd7f21 chore(deps-dev): bump flatted from 3.3.3 to 3.4.2 (#117) by dependabot[bot] · 3 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
}