Apache Cordova Create

Clone this repo:
  1. b849096 chore(deps): bump tar from 7.5.10 to 7.5.11 (#116) by dependabot[bot] · 9 days ago master
  2. a7d58c1 chore(deps): bump tar from 7.5.9 to 7.5.10 (#115) by dependabot[bot] · 2 weeks ago
  3. 3a66fa4 chore(deps-dev): bump minimatch from 3.1.2 to 3.1.4 (#114) by dependabot[bot] · 3 weeks ago
  4. a3330c3 chore(deps): bump tar from 7.5.7 to 7.5.9 (#113) by dependabot[bot] · 4 weeks ago
  5. 3207e1f chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 (#112) 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
}