I left them in because if I do, you don't have to npm install or yarn install. If I added node_modules/ to my .gitignore file. If I did a .gitignore with my node modules then you would have to npm install or yarn install to run node index.js. It just takes a step out of the equation. Figured it would be a little more user-friendly if you don't have to worry about the yarn/npm install.
If I had even a couple more node_modules I would have just added the .gitignore, but I only have node_modules for a single, light library.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I left them in because if I do, you don't have to
npm install
oryarn install
. If I added node_modules/ to my .gitignore file. If I did a .gitignore with my node modules then you would have tonpm install
oryarn install
to runnode index.js
. It just takes a step out of the equation. Figured it would be a little more user-friendly if you don't have to worry about the yarn/npm install.If I had even a couple more node_modules I would have just added the .gitignore, but I only have node_modules for a single, light library.