commit | 1abda7d43d714c4eb0cded4d08e2d810cc6cfce3 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sat May 12 17:03:54 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Sun May 13 00:29:57 2018 +0200 |
tree | a5c02f9f46dd0ee2c8bb923a84fcaa621a5d6f2a | |
parent | 7ed5bfb60cd619b738b879f15bab15c54c120505 [diff] |
Use import-fresh in tests too
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: '' } } };