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
-
mundo0349117yThere is something I do not get though, when you are using npm to fetch front end stuff, the general practice is to include those in the commits, because it is needed, at least this is how it worked before npm.
I get you can install all needs with npm but, the hosting shit I use does not have npm installed so I do need to commit the node_modules folder.
This shit is just plain weird. -
@mundo03 your hosting provider is plain ass weird . Why don't you shift to some cloud provider?
-
@mundo03 otherwise use a webpack or webpack like module bundler to bundle and build all the file together. And don't push the node_modules/
-
mundo0349117y@lokiiarora the provider is a basic one, php stuff, ruby and python for cgi
The webpack thing does make sense. I am using browserify, I'll check if it does this.
I don't do a lot of JS though, I am still looking into it. Thanks!! -
@mundo03 Cheapest server at Vultr is $2.50 per month, on which you can install absolutely anything you want.
It's common to not commit raw dependencies, but commit the built/transpiled/minified version instead.
Still, committing node_modules is only inconvenient. It's not as bad as the committed "environment" file I found in a repository yesterday, with all kinds of API keys and passwords in it. 😥
Related Rants
I once committed the node_modules/ :p
Only once tho xD
rant
node_modules
nodejs
wk81