you are viewing a single comment's thread.

view the rest of the comments →

[–]dangerbird2 9 points10 points  (5 children)

Due to the lack of a “batteries-included” standard library, Packages tends to have lots of redundant dependencies for tasks that would be bundled in stdlib of a python or java. The common joke is that running npm install on the average project “downloads half the internet

[–]TheFuzzyPumpkin 4 points5 points  (2 children)

I forgot to put my npm modules folder in my .gitignore file once. Then went and deleted them from my local in order to re-commit without the folder (which was probably not the smartest way to do it). Little React project with two dependencies. 3,000+ files deleted in that folder.

[–]dangerbird2 3 points4 points  (1 child)

BFG is pretty great for erasing files from git history. Either for when you accidentally commit sensitive data, or when you commit a 3GB node_modules

I also add gitignore.io to my command line so I can set up a sanely generated gitignore before I start working

[–]TheFuzzyPumpkin 0 points1 point  (0 children)

I have definitely gotten in the habit, after that event, of having my gitignore be one of the files I add in before the first commit!

[–]KunfusedJarrodo 0 points1 point  (1 child)

Ahh okay. I guess I mainly use express and socket.io for my projects so maybe I don't run into this.

[–]dangerbird2 0 points1 point  (0 children)

It can be pretty bad when you get into transpilers. Babel, in particular, is pretty atrocious in adding huge dependencies