CoffeeScript builder for Now 2.0
As of now, @now/node
only compile NodeJS, compilation support for TypeScript is comes from ncc. At present it seems that,
ncc
cannot support CoffeeScript, this compiler provides the possibility of using CoffeeScript.
Just add now-coffee
to your now.json
:
{
"version": 2,
"builds": [{ "src": "app.coffee", "use": "now-coffee" }],
"routes": [{ "src": "/", "dest": "app.coffee" }]
}
And your elegant coffee code (it's simple, huh?):
export default (req, res) -> res.end 'Hello from CoffeeScript on Now 2.0!'