I am coding a lot of individual plugins for my websites and I am using grunt
to manage the final distribution of them.
I'm used to write grunt.loadNpmTasks
to import a specific plugin from the node_modules
directory right into my Gruntfile
performing the tasks.
However, in order to do that, i always npm install <package> --save-dev
to make the plugin available in the specific plugin i am coding. But as they are dozens of plugins i am maintaining now, i found out the node_modules
directories are growing quite bigger, and my backup gets more and more slowly as the node_modules directories are full of files.
Is there a way to centralize the plugins ? so I can reunite all the node_modules directories in one ? and tell grunt
where this central repository stands as to load a particular plugin ?
edit: I tried to install grunt-contrib-less
globally (-g) for the test, but it still persist to say Local Npm module "grunt-contrib-less" not found. Is it installed?