Apache Cordova Create

Clone this repo:
  1. db556d2 chore(deps): bump the gh-actions-patch-minor group with 2 updates (#146) by dependabot[bot] · 25 hours ago master
  2. d21a0f6 chore(deps-dev): bump jasmine from 5.13.0 to 6.3.0 (#143) by dependabot[bot] · 8 days ago
  3. b9cf143 chore(deps): bump the gh-actions-patch-minor group with 2 updates (#144) by dependabot[bot] · 8 days ago
  4. 3a5d1ce chore(deps-dev): bump c8 from 10.1.3 to 12.0.0 (#140) by dependabot[bot] · 8 days ago
  5. 6c272cc chore: action workflow updates & add dependabot (#138) by エリス · 8 days 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
}