Sha256: 38f282082043ecdccd7fc95676e35d0660c7533d2a1d0f5d70e76f057fc4f9f3
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 Bytes
Contents
# A Small Victories Guardfile # More info at https://github.com/guard/guard#readme ## Uncomment and set this to only include directories you want to watch directories %w(.).select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")} guard 'livereload' do extensions = { css: :css, js: :js, html: :html, png: :png, gif: :gif, jpg: :jpg, jpeg: :jpeg, } # file types LiveReload may optimize refresh for compiled_exts = extensions.values.uniq watch(%r{./.+\.(#{compiled_exts * '|'})}) extensions.each do |ext, type| watch(%r{ (?:app|vendor) (?:/assets/\w+/(?<path>[^.]+) # path+base without extension (?<ext>\.#{ext})) # matching extension (must be first encountered) (?:\.\w+|$) # other extensions }x) do |m| path = m[1] "/_/#{path}.#{type}" end end watch(%r{_/.+\.liquid}) end logger level: :warn
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smallvictories-0.0.6 | src/Guardfile |