yocontra / node-linq

LINQ for node
http://wearefractal.com/
MIT License
77 stars 7 forks source link

Remove coffee-script dependency and publish npm module with compiled js #1

Closed mscdex closed 12 years ago

yocontra commented 12 years ago

What's the point in doing this? It works fine in a JS environment without having to prebuild

mscdex commented 12 years ago

@Contra How do I use node-linq without coffee-script?

EDIT: This patch just makes it more convenient for those who don't use/want coffee-script to use node-linq and people who do use coffee-script can still use it just fine.

yocontra commented 12 years ago

You just do require('node-linq') - When you require coffee-script it adds .coffee to the list of extensions for require. In index.js you can see it require()'s coffee-script then exports the real module (which is compiled at runtime by the new .coffee handler).