pliersjs / pliers

A build tool for node.js that supports sub-project building and watching
http://pliers.js.org/
18 stars 9 forks source link

pliers.exec child process inherits parent's stdio (fixes #10) #19

Closed bengourley closed 11 years ago

bengourley commented 11 years ago

It seems like the only way to convince the child process that it is in a TTY is to get it to inherit the parent process' stdio. You can't do this with child_process.exec (whether it is a bug or not) so I have switched to using spawn.

The caveat of this is I can't figure out how to also buffer only the output from the child process in order to pass it to the pliers.exec callback. I have commented that test out, so probably don't merge this if that's a desired feature.

serby commented 11 years ago

I'd rather than the color term than the output returned.