now-coffee

0.1.0 • Public • Published

Now Coffee

CoffeeScript builder for Now 2.0


Why Now Coffee ?

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.


Usage

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!'

Examples


LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i now-coffee

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

9.2 kB

Total Files

7

Last publish

Collaborators

  • echo_unix