commit | 169e0d76e01d97af6e57c64bd988c416464062f8 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Thu Jul 05 12:48:39 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Thu Jul 05 12:48:39 2018 +0200 |
tree | b3e90f980f786dae81186008aeb97eb63a14ae68 | |
parent | e020d8db9871f6689298577e80d1962e9300d027 [diff] |
Use path-is-inside to check for invalid nesting
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: '' } } };