

group :development do

  if File.exists?("./config.rb")
    # Compile on start.
    puts `compass compile --time --quiet`
    # https://github.com/guard/guard-compass
    guard :compass do
      watch(%r{(.*)\.s[ac]ss$})
    end
  end

  guard :livereload, :grace_period => 0.2 do
    watch(%r{.+\.(css|js|phtml|php)$})
    # watch(%r{$})
  end

end

