jharding / grunt-exec

Grunt plugin for executing shell commands.
https://npmjs.org/package/grunt-exec
Other
248 stars 47 forks source link

Run tests on Windows and support outputProperty #48

Closed simoneb closed 10 years ago

simoneb commented 10 years ago

I did some changes to be able to run tests correctly on Windows and added support for a new option, outputProperty, which will populate a grunt property with the same name as the value of the option with the contents of the standard output of the command.

jharding commented 10 years ago

Out of curiosity, what's a use case for the outputProperty functionality?

simoneb commented 10 years ago

To avoid repeating stuff like child_process.exec with a callback just to extract a line from the stdo of commands like git describe.

jharding commented 10 years ago

Merged in the changes for running tests on Windows, but dropped the outputProperty changes as I'm not convince there's a whole lot of value in adding it.