edwardhotchkiss/always — pull request #8 by wronex (2012-08-03 19:40:18+00:00)
Title: New lines in error messages and support for Coffee scripts.

Hi,

I have made some improvements on your already excellent code. _always_ have made my life much easier, but there where some things I missed.

One of those things where new-lines in error messages -- all new-line characters where dropped when the data from stderr was cleaned. I fixed this by replacing your regexp with a function that only removes spaces at both ends of the string. The trim code was taken from .

The other was _always_'s inability to run Coffee scripts. I fixed this by checking the file extension of the _app_ variable to choose between Node and Coffee (in _initializeDevelopment()_). The chosen parser/environment is written to a variable called _parser_ which is utilized in _start()_ when spawning the child process. Unfortunately I have not been able to test this addition on anything other than Windows.