commit | f17ccf70448a4822ba2ed0434dd39b905822321a | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Thu Jun 28 18:27:47 2018 +0200 |
committer | GitHub <noreply@github.com> | Thu Jun 28 18:27:47 2018 +0200 |
tree | 4a037aeb89a4da6ea89dfa77c93b80959eb905e3 | |
parent | 10870103c0d2a58ce0d8b91cf14053dd0c315b20 [diff] |
CB-14173 Fix cordova <platform|plugin> add --link (#26) This drops support for the untested and undocumented `link` option which when set, caused `npm link` to be run instead of `npm install`. However, the installed package's name cannot be extracted from the output of `npm link`. Thus we failed in that case. Now we always run `npm install` instead. This works for the use case of `cordova <platform|plugin> add --link` since packages identified by a local path are installed as symbolic links by npm.
This module is used for fetching modules from npm and gitURLs. It fetches the modules via npm install
. It can also npm uninstall
modules from a project.
var fetch = require('cordova-fetch'); fetch(spec, dest, opts);
spec
can be a string containg a npm packageID
or a git URL
. dest
is string of the directory location you wish to npm install
these modules. opts
is an Object of options cordova fetch handles. Currently, fetch only support the save
option. eg. {'save':true}
var npmUninstall = require('cordova-fetch').uninstall; npmUninstall(spec, dest, opts);
spec
can be a string containg a npm packageID
. dest
is string of the directory location you wish to npm uninstall
these modules. opts
is an Object of options cordova fetch handles. Currently, fetch only support the save
option. eg. {'save':true}