3 ms·
Hi, first of all thanks for your comment! Git integration is in the roadmap and yesterday I started thinking about how to do it. Based on how this CLI works,
by nachoaldamav 4y ago
Hi, first of all thanks for your comment!
Git integration is in the roadmap and yesterday I started thinking about how to do it.
Based on how this CLI works, my idea for caching git packages is the following:
"userFolder/Ultracache/git/user/repo/hash"
This will help to not download many times the same repository.
Anyway, to do this I still need to figure out how to download the packages.
For this I thought about using Node.js Child Process / Spawn to execute "git clone <repo>", this should be as fast as execute the command in your shell.
The problem with NPM and Yarn is probably how they work. NPM/Yarn fetchs all the manifests to create the dependency tree before starting to download the packages. With Git packages you can't do that because you can't get the manifest before the packages.
In the following days I will work on this starting today, so maybe you want to check the repo!