https://github.com/HashNuke/coffee_rotor
Rotor plugin to compile CoffeeScript files
https://github.com/HashNuke/coffee_rotor
Last synced: 21 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T16:28:43.000Z (about 5 years ago)
- Last Synced: 2025-03-14T23:22:22.787Z (about 1 month ago)
- Language: Elixir
- Homepage:
- Size: 284 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Rotor plugin to compile CoffeeScript files. (Build Tools)
- fucking-awesome-elixir - coffee_rotor - Rotor plugin to compile CoffeeScript files. (Build Tools)
- awesome-elixir - coffee_rotor - Rotor plugin to compile CoffeeScript files. (Build Tools)
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
```