Skip to content
Permalink
Browse files
updated readme and package.json
  • Loading branch information
stevengill committed Aug 23, 2016
1 parent fe48799 commit 6454777f85b620ef257f4321eecb19bccfcc956c
Showing 2 changed files with 20 additions and 2 deletions.
@@ -24,7 +24,7 @@

# cordova-create

This module is used for creating cordova style projects.
This module is used for creating cordova style projects. It also incudes support for [cordova templates](http://cordova.apache.org/docs/en/latest/guide/cli/template.html). It can fetch templates from npm and git.

## Usage:
:
@@ -39,3 +39,17 @@ create(dir, id, name, cfg, extEvents);
`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: ''
}
}
};
```
@@ -25,7 +25,7 @@
},
"engineStrict": true,
"dependencies": {
"cordova-app-hello-world": "3.10.0",
"cordova-app-hello-world": "^3.10.0",
"cordova-common": "^1.4.0",
"cordova-fetch": "^1.0.0",
"q": "1.0.1",
@@ -45,6 +45,10 @@
{
"name": "Caryn Tran",
"email": "caryn.tran@berkeley.edu"
},
{
"name": "Steve Gill",
"email": "stevengill97@gmail.com"
}
]
}

0 comments on commit 6454777

Please sign in to comment.