Apache Cordova Create

Clone this repo:
  1. 7dbe062 chore: increment package version to 4.0.1-dev by Erisu · 8 months ago master
  2. fdc45ad release(4.0.0): updated release notes & version (create-4.0.0) by Erisu · 9 months ago 4.0.x 4.0.0 rel/4.0.0
  3. 93bc128 dep!: update all dependencies (#68) by エリス · 9 months ago
  4. 70bc862 chore: bump 4.0.0-dev (#69) by エリス · 9 months ago
  5. f94383c chore: clean up package.json (#67) by Raphael von der Grün · 1 year, 10 months ago

cordova-create

NPM

Node CI 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
}