I have a Gruntfile in the root of my project. I also have jQuery installed via Bower in an app/components/jquery directory.
As part of my Gruntfile I'd like to run some commands on the jQuery Gruntfile to build a custom version of the library.
How can I get at their Gruntfile from mine?
Based on @Sindre's and @Stephen's answer, we can also get the console output "in real time" without being buffered:
dont know if that works, but you could give it a try. your jQuery Gruntfile is exported via "module.exports". that should mean, that you can require it in your code and use it.
will be interesting to hear if that works...
You can create a simple task that spawns grunt in the folder you want:
If you want to get console output, building on @Sindre's answer, all you have to do is console log the result.stdout.