Closed flacial closed 8 months ago
Is this ticket ready to be picked up?
@flacial thanks for opening this ticket. We include the .yarn/cache
folder intentionally (per the Offline Caching strategy recommended by yarn here). While it makes cloning the repo a bit slower (and you reduce that time by doing git clone --depth=0
the first time you clone it, it also saves time when doing an initial yarn install
. If you wanted to create a PR that updates the README to note that you can reduce the depth of the initial clone to download the repo faster, that would certainly be appreciated!
Overview
While reviewing the codebase, I noticed that the
.yarn/cache
folder is getting tracked by the version control system and this folder contains a cache of all the packages installed using Yarn. This folder can get large quickly over time, making cloning/pulling from the repo slow. Caused by #363.Proposal
.yarn/cache
to the.gitignore
file.yarn/cache
from the repo usinggit rm -r --cached .yarn/cache
--cached
will remove the file from the git repo but keep it in locally in the machineI'll be more than happy to create a PR that applies the above proposal!