commit | 92aa8e7965b23991a430b9753c1f01ea2953fa5c | [log] [tgz] |
---|---|---|
author | Jesse MacFadyen <purplecabbage@gmail.com> | Mon Aug 29 16:54:42 2016 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Mon Apr 24 15:55:36 2017 -0700 |
tree | bfab8342a59835e9b106df6d05d50817839e0744 | |
parent | a20336d975a8e1ea02f182b89bdb606382921b77 [diff] |
Ignore spec/ when publishing to npm This closes #2
This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.
:
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: '' } } };