Reloading Guardfile on changes to files other than the Guardfile

前端 未结 1 535
眼角桃花
眼角桃花 2021-01-25 06:37

Currently, Guard::Setuper reloads just the Guardfile when it changes.

I\'m loading some additional code into my guard file (via require), and I\'d like to a

相关标签:
1条回答
  • 2021-01-25 07:37

    You could probably try something like this in your Guardfile (using guard-shell):

    guard :shell do
      watch(%r{path/to/your/required/files}) { Guard.evaluator.reevaluate_guardfile }
    end
    

    @Zach: Up-to-date documentation is at http://guardgem.org (usage) and http://rubydoc.info/github/guard/guard/master/frames (technical).

    0 讨论(0)
提交回复
热议问题