I’m approaching gulp and grunt-based theme development on a WP network without much of a background in Node.js and wondering if I’m going about this poorly.
I have a particular WP network with at least 12 individually themed sites on it. (The client is a designer. All their sites look different.) I use Gulp and Grunt files to help me with SASS and things. Generally, I end up with 60mb+ of a /node_modules/ directory in each theme or child theme directory even though I think all of the themes would use the same structure and Gulp-or-Gruntfile.js … unless I’m forgetting an aspect of that. Offering both here as I don’t really care which one I use unless it matters.
I know 60mb might not amount to much for some, but I also like the idea of using a master gulpfile. Should I be sharing resources across all of these themes somehow? I do use .gitignore to make sure I’m not committing stuff like that, but it’s still seems repetitive to keep all of this stuff on my local machine.
PS: Apologies if I’m forgetting a fundamental concept of Grunt or Gulp or Node. I haven’t set up a site in a couple of weeks and am writing this as I try to remember why I’m doing this the way I have in the past. There are also so many basic tutorials about grunt and gulp theme development, I’m having trouble zeroing in on an answer to this specific question. I also have to work on a Windows machine, fwiw.