chore: bump 4.0.0-dev (#69)

2 files changed
tree: dc8b66d09f550907d14b6924ef8aaae37a309818
  1. .github/
  2. spec/
  3. .asf.yaml
  4. .eslintignore
  5. .eslintrc.yml
  6. .gitignore
  7. .npmignore
  8. CONTRIBUTING.md
  9. index.js
  10. LICENSE
  11. NOTICE
  12. package-lock.json
  13. package.json
  14. README.md
  15. RELEASENOTES.md
README.md

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
}