Apache Cordova Create

Clone this repo:
  1. 7cdf823 chore: increment package version to 6.0.1-dev by Erisu · 4 weeks ago master
  2. 53587a8 release(6.0.0): updated release notes & version (create-6.0.0) by Erisu · 7 weeks ago 6.0.x 6.0.0 rel/6.0.0
  3. f0f1c5d chore: add .npmrc & update ignore files (#103) by エリス · 3 months ago
  4. 90e6b80 chore: replace nyc with c8 (#102) by エリス · 3 months ago
  5. bceb12d chore!: upgrade @cordova/eslint-config@6.0.0 (#99) by エリス · 3 months 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
}