commit | fd543ac2695f2834c6f5f92875186de974b665c7 | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Tue Nov 05 17:26:10 2019 +0900 |
committer | GitHub <noreply@github.com> | Tue Nov 05 17:26:10 2019 +0900 |
tree | 61a6c63fb50fc2e0d0def2450ea90a952670d350 | |
parent | ba48369b36691f2f2a743def1d6251319a86c85f [diff] |
chore: improve npm ignore list (#50) = BEFORE = npm notice package size: 36.1 kB npm notice unpacked size: 151.6 kB npm notice total files: 28 = AFTER = npm notice package size: 10.0 kB npm notice unpacked size: 31.4 kB npm notice total files: 5
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: '' } } };