lib/linner/command.rb in linner-0.3.0 vs lib/linner/command.rb in linner-0.3.1
- old
+ new
@@ -37,12 +37,19 @@
Notifier.error $!
end
end
@proc.call
- Listen.to! env.app_folder, env.vendor_folder, env.test_folder do |modified, added, removed|
+ Listen.to env.app_folder, env.vendor_folder, env.test_folder do |modified, added, removed|
@proc.call
end
+
+ @reactor = Reactor.supervise_as(:reactor).actors.first
+ Listen.to env.public_folder, relative_path: true do |modified, added, removed|
+ @reactor.reload_browser(modified + added + removed)
+ end
+
+ sleep
end
desc "clean", "clean assets"
def clean
FileUtils.rm_rf Dir.glob("#{env.public_folder}/*")