Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
coffeescript marger
Ruby
branch: master

This branch is 2 commits ahead, 3 commits behind amacou:master

Merge pull request #1 from hedgehog/patch-1

Clarify, and code format
latest commit 0763bfc21c
@amacou amacou authored
Failed to load latest commit information.
lib/guard
spec change config filename coffeedripper.yaml -> coffee-dripper.yaml, and…
LICENSE add license and gemspec
README.md
guard-coffeedripper.gemsepc

README.md

Guard::CoffeeDripper

Guard::CoffeeDripper is MergeTool for CoffeeScript

Install

Install the gem:

gem install guard-coffeedripper

Add it to your Gemfile (inside develop group):

gem 'guard-coffeedripper'

Add coffeedripper definition to your Guardfile and config/coffee-dripper.yaml by running this command:

guard init coffeedripper

Usage

Please read Guard usage doc Guardfile for Rails3.0 and barista

guard 'coffeedripper', :output => 'app/coffscripts/'  do
  watch(%r{^app/coffeescripts/(.+)\.bean$}) {|m| "#{m[1]}.bean"}
end

or Rails3.1

guard 'coffeedripper', :output => 'app/assets/javascripts/' do
  watch(%r{^app/assets/javascripts/(.+)\.bean$}) {|m| "#{m[1]}.bean"}
end

Configuration example: config/coffee-dipper.yaml

appplication.js.coffee:
  - hoge.bean
  - huga.bean
Something went wrong with that request. Please try again.