Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hashnuke/coffee_rotor
- Owner: HashNuke
- License: mit
- Created: 2013-12-05T04:25:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T16:28:43.000Z (over 4 years ago)
- Last Synced: 2024-11-01T07:33:09.043Z (16 days ago)
- Language: Elixir
- Homepage:
- Size: 284 KB
- Stars: 17
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 Rotorimport Rotor.BasicRotors
import CoffeeRotoroutput_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
```