2019-03-26 15:32:20 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-26 15:25:45 +00:00
|
|
|
# https://github.com/thoughtbot/ember-cli-rails/issues/479#issuecomment-241302961
|
|
|
|
Spring::Watcher::Listen.class_eval do
|
|
|
|
def base_directories
|
2019-03-26 15:32:20 +00:00
|
|
|
%w[app config db lib test vendor]
|
2019-03-26 15:25:45 +00:00
|
|
|
.uniq.map { |path| Pathname.new(File.join(root, path)) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-26 15:32:20 +00:00
|
|
|
%w[
|
2018-01-02 17:19:25 +00:00
|
|
|
.ruby-version
|
|
|
|
.rbenv-vars
|
|
|
|
tmp/restart.txt
|
|
|
|
tmp/caching-dev.txt
|
2019-03-26 15:32:20 +00:00
|
|
|
].each { |path| Spring.watch(path) }
|