Skip to content

Instantly share code, notes, and snippets.

@deedubs
Created November 18, 2010 23:49
Show Gist options
  • Save deedubs/705903 to your computer and use it in GitHub Desktop.
Save deedubs/705903 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'em-dir-watcher'
require 'jammit'
Jammit.load_configuration 'config/assets.yml'
EM.run {
dw = EMDirWatcher.watch '.', :include_only => ['*.css','*.js'], :exclude => ['public/packages'] do |paths|
paths.each do |path|
puts "jam on it"
Jammit.package!
end
end
puts "Your jam session has begin..."
}
[sudo] gem install eventmachine em-dir-watcher jammit
hacky implementation requires jamsession.rb in route of project then
ruby jamsession.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment