Apache Cordova Create

Clone this repo:
  1. 3da1923 chore(deps): bump tmp from 0.2.6 to 0.2.7 (#129) by dependabot[bot] · 4 weeks ago master
  2. bb86eef chore(deps-dev): bump js-yaml from 4.1.1 to 4.2.0 (#128) by dependabot[bot] · 4 weeks ago
  3. 8376ef5 chore(deps): bump tar from 7.5.11 to 7.5.16 (#127) by dependabot[bot] · 4 weeks ago
  4. f13f472 chore(deps): bump tmp from 0.2.5 to 0.2.6 (#126) by dependabot[bot] · 4 weeks ago
  5. b996856 chore(deps): bump ip-address from 10.0.1 to 10.2.0 (#123) by dependabot[bot] · 4 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
}