An open API service indexing awesome lists of open source software.

https://github.com/unix/now-coffee

The missing CoffeeScript builder for Now 2.0
https://github.com/unix/now-coffee

Last synced: 3 months ago
JSON representation

The missing CoffeeScript builder for Now 2.0

Awesome Lists containing this project

README

        

# 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](https://github.com/zeit/ncc). At present it seems that,
`ncc` cannot support [CoffeeScript](https://coffeescript.org/), this compiler provides the possibility of using CoffeeScript.


## Usage

Just add `now-coffee` to your `now.json`:

```json
{
"version": 2,
"builds": [{ "src": "app.coffee", "use": "now-coffee" }],
"routes": [{ "src": "/", "dest": "app.coffee" }]
}
```

And your elegant coffee code (it's simple, huh?):

```coffeescript
export default (req, res) -> res.end 'Hello from CoffeeScript on Now 2.0!'
```


## Examples

- [now-examples](https://github.com/zeit/now-examples/tree/master/nodejs-coffee)

- [example projects]()


## LICENSE
[MIT](LICENSE)