try to use fssm with vendored darwin/linux support instead of guard
This commit is contained in:
parent
c7249a63b1
commit
83de7a7e13
25 changed files with 1601 additions and 62 deletions
|
@ -61,6 +61,7 @@ module Middleman::CoreExtensions::FileWatcher
|
|||
# @param [String] path The file that changed
|
||||
# @return [void]
|
||||
def file_did_change(path)
|
||||
return if ::Middleman::Watcher.ignore_list.any? { |r| path.match(r) }
|
||||
file_changed.each do |callback, matcher|
|
||||
next if path.match(%r{^#{build_dir}/})
|
||||
next if !matcher.nil? && !path.match(matcher)
|
||||
|
@ -73,6 +74,7 @@ module Middleman::CoreExtensions::FileWatcher
|
|||
# @param [String] path The file that was deleted
|
||||
# @return [void]
|
||||
def file_did_delete(path)
|
||||
return if ::Middleman::Watcher.ignore_list.any? { |r| path.match(r) }
|
||||
file_deleted.each do |callback, matcher|
|
||||
next if path.match(%r{^#{build_dir}/})
|
||||
next unless matcher.nil? || path.match(matcher)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue