Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
asgs115636yMy node knowledge is literally zero, so how does committing libraries hinder the search for examples?
-
macbury12966y@asgs for example: I want to see how people use in their projects some react component or ruby gem. So I go to github and perform search. What I see now is pages with the same code pointing to source in node_modules, vendor/gems that is exactly the same(because is pulled from the same package).
-
jeeper59666y@asgs and the first thing you do is run npm install or gems install (I think I use node not ruby) and it gets the proper version from the respective CDN based on a specification file in the project. Using a .gitignore is the solution, but idk how to fix all the previous fuck ups
-
git add /node_modules
git commit -m 'Try to find something now'
git push origin lol -
I used to commit the vendor/gems folder. This is because the CI server and agents do not have internet access. So it's easy to do a bundle install --local.
-
jeeper59666y@mundo03 I cannot fathom a good reason to commit node_modules.
Not to the git repo. In an electron program or something you have to ship them to the end user. If for some asinine reason you can't download them on the end target machine, zip from the dev machine and hardware transfer the files. -
mundo0349796y@jeeper I was talking more about Ruby, same concept though.
I do not read too much about node because I think JS is the front end is stupid enough.
I have seen cases where pythonists and rubyists do commit the equivalent to node_modules, but maybe it is because node_modukes tend to have way too much shit in it and mode devs tend to install full huge packages for the stupidest little things. -
jeeper59666y@mundo03 anything distributed over a cdn shouldn't be committed, imo. But I don't know the specifics of python and ruby.
I hate fucking people that commit into repository all libraries and modules under node_modules or vendor/gems making impossible to search examples on github.
rant