Skip to content

HashNuke/coffee_rotor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoffeeRotor

This is a 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

About

Rotor plugin to compile CoffeeScript files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published