Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hashnuke/coffee_rotor

Rotor plugin to compile CoffeeScript files
https://github.com/hashnuke/coffee_rotor

Last synced: 15 days ago
JSON representation

Rotor plugin to compile CoffeeScript files

Awesome Lists containing this project

README

        

# CoffeeRotor

This is a [Rotor](https://github.com/HashNuke/rotor) to compile CoffeeScript files.

### Usage

The `CoffeeRotor` module provides the `coffee` rotor. And this is how you call it

```
CoffeeRotor.coffee(files)
```

### Example config using the coffee rotor

```
# This goes in the place you are configuring Rotor

import Rotor.BasicRotors
import CoffeeRotor

output_path = "priv/static/assets/app.js"
Rotor.watch :coffeescripts, ["priv/assets/javascripts/*.coffee"], fn(_changed_files, all_files)->
read_files(all_files)
|> coffee
|> concat
|> output_to(output_path)
end
```