Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created February 3, 2012 04:19
Show Gist options
  • Save rummelonp/1727860 to your computer and use it in GitHub Desktop.
Save rummelonp/1727860 to your computer and use it in GitHub Desktop.
guard で *.less と *.coffee 監視してコンパイル
source 'http://rubygems.org'
gem 'guard'
gem 'guard-less'
gem 'guard-coffeescript'
# -*- coding: utf-8 -*-
guard :less, output: 'public/stylesheets', import_paths: ['assets/less'] do
watch %r{assets/less/.+\.less}
end
guard :coffeescript, output: 'public/javascripts' do
watch %r{assets/coffeescript/.+\.coffee}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment