Picture a [non-modular] folder structure like this:
root/
- Gruntfile.js
- node_modules/
- Platform/
- Gruntfile.js
- ...
- Products/
- ProductA/
- Gruntfile.js
- ...
- ProductB/
- Gruntfile.js
- ...
- ...
From the root
dir's Gruntfile.js
, I effectively want to delegate out to the sub-Gruntfile.js
under the Platform
dir and each of the Product
dirs.
Pseudo-coded desired action:
glob(["Platform/Gruntfile.js", "Products/*/Gruntfile.js"], function(err, results) {
results.forEach(function(gruntfile) {
grunt.run(gruntfile);
});
});
+1