Install plugin directly from repository
Opened this issue · 5 comments
It would be much easier if we could:
Download from npm:
cordova plugins add jxcore-cordova
Or:
cordova plugins add https://github.com/jxcore/jxcore-cordova
Instead of downloading jx file and extracting it.
@karaxuna The jxcore-cordova repo does not have required binaries, because they are big and each commit makes the entire repo bigger (history is remembered) so we started to keep it packed and moved to another repo jxcore-cordova-release.
But it needs to be packed somehow, since uncompressed files are even more larger.
@ktrzeciaknubisa I have not used hooks before, but maybe we can use some hook to download binaries before adding plugin? Is it possible?
I was trying to dig it too, due to similar suggestion #77 (comment) . But I wasn't digging long enough to have promising results. Plus, the assumption was to keep entire plugin in npm repo, which seemed not to be proper because of the size.
@ktrzeciaknubisa I'll try to make it work so that binaries will be downloaded before adding plugin.
It might be good to have it.
Although I think that for dev purposes (where e.g. you need to re-install the plugin often) jxc is more useful, since it is caching downloaded packages.