From 617619a49344beea6429281b769e049b0d6bc286 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 26 Mar 2019 12:25:45 -0300 Subject: [PATCH] ignorar directorios de jekyll durante el desarrollo --- app/models/site.rb | 3 ++- config/spring.rb | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/models/site.rb b/app/models/site.rb index c39d3661..a25cd03c 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -337,7 +337,8 @@ class Site # entre sitios incluso config = ::Jekyll.configuration('source' => path, 'destination' => File.join(path, '_site'), - 'safe' => true) + 'safe' => true, + 'watch' => false) # No necesitamos cargar plugins en este momento %w[plugins gems theme].each do |unneeded| diff --git a/config/spring.rb b/config/spring.rb index c9119b40..0b96270c 100644 --- a/config/spring.rb +++ b/config/spring.rb @@ -1,3 +1,11 @@ +# https://github.com/thoughtbot/ember-cli-rails/issues/479#issuecomment-241302961 +Spring::Watcher::Listen.class_eval do + def base_directories + %w(app config db lib test vendor) + .uniq.map { |path| Pathname.new(File.join(root, path)) } + end +end + %w( .ruby-version .rbenv-vars