visionmedia / expresso

use mocha
http://visionmedia.github.com/expresso
759 stars 89 forks source link

Adding CoffeeScript support #83

Closed alsonkemp closed 13 years ago

alsonkemp commented 13 years ago

Very simple change to move the regex out into a variable, then include coffee files in the regex if coffeescript is available.

tj commented 13 years ago

grrr lol I usually say no to coffeescript stuff, but since this is a testing framework I will merge.

alsonkemp commented 13 years ago

Doh!, didn't know you had an aversion to CS... It's the new, old hotness! ;)

tj commented 13 years ago

nope lol i think it splits the community, but it shows me which libraries to ignore :D

nalply commented 13 years ago

lol... I just took up CoffeeScript and wrote a small hand-crafted parser in it. ducks

I have a minor issue. ducks again\ :-)

Do not use outdated compiled .js files. To work around the issue, I do rm lib/*.js test/*.js; expresso the whole time.

By the way, Coffeescript is nice and quirky at the same time. It lays bare the real soul and the evil power of Javascript but is hindered by syntax kludges, browser limitations and fundamental Javascript design mistakes. A real eye-opener and a strange Janus-faced beast.