Created
November 18, 2010 23:49
-
-
Save deedubs/705903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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..." | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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