Apache Cordova Create

Clone this repo:
  1. 6057edc chore(INFRA): Set up default protection ruleset for default and release branches (#124) by The Apache Software Foundation · 3 days ago master
  2. d174cbf Merge pull request #125 from apache/dependabot/npm_and_yarn/brace-expansion-5.0.6 by Manuel Beck · 3 days ago
  3. 39689e1 chore(deps): bump brace-expansion from 5.0.5 to 5.0.6 by dependabot[bot] · 3 days ago
  4. be9070f chore(deps): bump @xmldom/xmldom from 0.8.12 to 0.8.13 (#122) by dependabot[bot] · 4 weeks ago
  5. 5b461ef chore(deps): bump lodash from 4.17.23 to 4.18.1 (#121) by dependabot[bot] · 6 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
}