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
- Host: GitHub
- URL: https://github.com/unix/now-coffee
- Owner: unix
- License: mit
- Created: 2019-03-16T14:26:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-17T13:56:23.000Z (over 6 years ago)
- Last Synced: 2025-03-28T19:55:03.874Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)