0
Guys, I’m starting in Gruntjs, my folder node_modules has 50MB, that for each project, it gets bad.
I wonder if you have how to leave a standard node_modules folder in one place to use in all projects without having to stay inside the project’s Rais.
Thank you
Example:
my front-end project today:
nome-do-projeto
---node_modules(50mb)
---assets
---sass
---js
---build
---css
---js
I would like the node_modules folder, I was out of the project root.
Are you talking about the project on github, server, or where?
– Sergio
front-end project, I will try to explain better
– Rafael Melo
But the reason to take it from the root is to decrease the weight in the repository? Because if it is, just ignore this directory in the version control system.
– bfavaretto
today I already use the function of ignoring node_modules, in SVN, however I wanted something different(better), I looked looking for some things about installing plugins/dependency as global
– Rafael Melo
I really see no problem the folder within the project, you can explain to me what it hinders ?
– Fábio Lemos Elizandro
This may sound like a rhetorical question, but you’re using the
package.json
to control their dependencies?– gabrielhof
We read work in an agency like front end, and handling a folder with 50MB within each project is bad if I can have another solution. Yes Gabriel use package.json within the project to control dependencies.
– Rafael Melo