Apache Cordova Create

Clone this repo:
  1. 70169cf chore: eslint config cleanup (#55) by エリス · 3 weeks ago master
  2. 1d0d67e feat: support .gitignore files in generated app (#53) by Raphael von der Grün · 3 weeks ago
  3. b64df2e refactor: eslint setup (#54) by エリス · 3 weeks ago
  4. d894243 Fix isRemoteUri (#52) by Raphael von der Grün · 4 weeks ago
  5. ef7f8cb Add syntax highlighting to code samples in README (#51) by Raphael von der Grün · 4 weeks ago

Build status Build Status

cordova-create

This module is used for creating cordova style projects. It also incudes support for cordova 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
}