Last active
December 11, 2015 23:38
-
-
Save ryanlindsey/4677519 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
# For a similar requirement, I just wrote myself a little Guardfile like this: | |
require 'guard/guard' | |
module ::Guard | |
class Middleman < ::Guard::Guard | |
def run_all | |
system("bundle exec middleman build --clean") | |
end | |
def run_on_change(paths) | |
system("bundle exec middleman build --clean") | |
end | |
end | |
end | |
guard 'middleman' do | |
watch(/^source/) | |
end | |
# Then I just run guard and let it take over. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment