chore(npm): use short notation in package.json (#58)

1 file changed
tree: f5641947e6e58dd0ebb582309debe5fd7ea311c9
  1. .github/
  2. spec/
  3. .eslintignore
  4. .eslintrc.yml
  5. .gitignore
  6. .npmignore
  7. .ratignore
  8. .travis.yml
  9. appveyor.yml
  10. CONTRIBUTING.md
  11. index.js
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
  16. RELEASENOTES.md
README.md

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
}