Apache Cordova Create

Clone this repo:
  1. 3207e1f chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 (#112) by dependabot[bot] · 35 hours ago master
  2. e23fc5f chore(deps): bump tar from 7.5.6 to 7.5.7 (#111) by dependabot[bot] · 7 days ago
  3. 2b809ae chore(deps): bump lodash from 4.17.21 to 4.17.23 (#109) by dependabot[bot] · 2 weeks ago
  4. 9ecfc5b chore(deps): bump tar from 7.5.3 to 7.5.6 (#108) by dependabot[bot] · 2 weeks ago
  5. 2508bbd chore(deps): bump tar and pacote (#107) 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
}