Skip to content

Instantly share code, notes, and snippets.

@geta6
Created June 25, 2012 12:26
Show Gist options
  • Save geta6/2988291 to your computer and use it in GitHub Desktop.
Save geta6/2988291 to your computer and use it in GitHub Desktop.
PhoneGap用のコードをcoffee, less, hamlで書く
test/
  Gemfile
  Gemfile.lock
  Guardfile
  assets/
  test/
  test.xcodeproj
  www/

exec guard

hamlをjadeとかにしたいんだけどguard-jadeが無いので諦めたやつ

source 'http://rubygems.org'
gem 'guard'
gem 'guard-less'
gem 'guard-haml'
gem 'guard-coffeescript'
gem 'rb-fsevent'
gem 'growl'
guard 'haml', :output => 'www', :input => 'assets/haml' do
watch %r{^assets/haml/.+(\.html\.haml)}
end
guard :less, :output => 'www/css' do
watch %r{^assets/less/.+\.less}
end
guard :coffeescript, :output => 'www/js' do
watch %r{^assets/coffee/.+\.coffee}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment