I have a Node application that I am deploying to Heroku. In your documents, it is recommended to use node_modules in your directory (i.e. not gitignore it), for faster it also deploys dev / prod.
In my package.json I have loaded devDependencies (mostly Grunt plugins and all their depics) and several regular serial dependencies such as Express. Herok needs only industrial waste. I would prefer not to check all my maiden depots, because they reach approximately 50 MB.
Is there a way to have a separate folder for you dev deps, for example. node_modules_dev ? If it were possible, I could just add node_modules_dev to my .gitignore and check the node_modules directory in the regular version as recommended by Heroku.
Is there any way to do this? Or can you think of another way to do what I'm trying to do?
callum
source share