CB-12358 Incremented package version to -dev
1 file changed
tree: 28c918de639056cf63bb9d52e536cfc253b21871
  1. .github/
  2. .gitignore
  3. .ratignore
  4. .travis.yml
  5. LICENSE
  6. README.md
  7. RELEASENOTES.md
  8. appveyor.yml
  9. index.js
  10. package.json
  11. 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: ''
        }
    }
};