GH-10 Updated version and RELEASENOTES.md for release 2.0.0
3 files changed
tree: f26936614193383ab6a70238459272b576116137
  1. .eslintrc.yml
  2. .github/
  3. .gitignore
  4. .npmignore
  5. .ratignore
  6. .travis.yml
  7. LICENSE
  8. README.md
  9. RELEASENOTES.md
  10. appveyor.yml
  11. index.js
  12. package-lock.json
  13. package.json
  14. spec/
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:

var create = require('cordova-create');

create(dir, id, name, cfg, extEvents);
  • dir - directory where the project will be created. Required.
  • id - app id. Required (but can be “undefined”).
  • name - app name. Required (but can be “undefined”).
  • cfg - extra config to be saved in .cordova/config.json Required (but can be “{}”).
  • extEvents - An EventEmitter instance that will be used for logging purposes. Required (but can be “undefined”).

An example of cfg which would fetch a cordova template from npm (or git):

var cfg = {
    lib: {
        www: {
            template: true,
            url: 'cordova-app-hello-world',
            version: ''
        }
    }
};