Skip to content

Instantly share code, notes, and snippets.

@ryanlindsey
Last active December 11, 2015 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanlindsey/4677519 to your computer and use it in GitHub Desktop.
Save ryanlindsey/4677519 to your computer and use it in GitHub Desktop.
# 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