Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

coffeescript marger

branch: master

This branch is 0 commits ahead and 0 commits behind master

Merge pull request #1 from hedgehog/patch-1

Clarify, and code format
latest commit 0763bfc21c
amacou amacou authored November 03, 2011
Octocat-spinner-32 lib typo June 19, 2011
Octocat-spinner-32 spec change config filename coffeedripper.yaml -> coffee-dripper.yaml, and… June 19, 2011
Octocat-spinner-32 LICENSE add license and gemspec June 12, 2011
Octocat-spinner-32 README.md Clarify, and code format November 03, 2011
Octocat-spinner-32 guard-coffeedripper.gemsepc add license and gemspec June 12, 2011
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.