commit | 0d46b0259914fc82c38180e44f562e76d69b1d5c | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Wed Dec 26 21:03:50 2018 +0900 |
committer | GitHub <noreply@github.com> | Wed Dec 26 21:03:50 2018 +0900 |
tree | 28f6f33cdb86116412ab48f0a506d71509355903 | |
parent | 5e3aab6369c195512ca31a6134b96446452c5c5a [diff] |
Updated package.json bug tracker link (#37)
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: '' } } };