erskingardner / nostr-how

https://nostr.how
112 stars 51 forks source link

git repo is 300MB #37

Closed fiatjaf closed 1 year ago

fiatjaf commented 1 year ago

Just complaining that it is taking a long time to download it from here. Maybe there are some dependencies or bundled assets committed to the git history that shouldn't be there. Would be good if we could prune them and rewrite the history.

erskingardner commented 1 year ago

Yeah, this bugs me too. TBH, part of using next.js was to learn more about react based frameworks. Somewhere in there I switched to yarn 2 and their newer plug and play system which bundles full dependencies instead of having everyone download their own. Kind of a strange trade-off imo.

I might have a look at doing back and doing a prune...

fernandolguevara commented 1 year ago

git clone --depth 1 84~MiB

erskingardner commented 1 year ago

Thanks for the PR @fernandolguevara – I've spent a little more time reading up on yarn's PNP and zero installs and I think I'm going to leave them in the project. Here's a great blog post that breaks down benefits and why the larger repo size is worth it. As such, I'm going to close your PR and keep the bigger repo but faster CI, etc.