Sha256: 4ac15076da076b6dacfb141b34554192b245e95a616906f7a606f3d1798d54e0

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Presenter
    module Behavior
      module Watching
        extend Support::Extension

        apply_extension do
          after "load" do
            ([:html] + state(:processor).map(&:extensions).flatten).uniq.each do |extension|
              config.process.watched_paths << File.join(config.presenter.path, "**/*.#{extension}")
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-presenter-1.0.0.rc5 lib/pakyow/presenter/behavior/watching.rb
pakyow-presenter-1.0.0.rc4 lib/pakyow/presenter/behavior/watching.rb
pakyow-presenter-1.0.0.rc3 lib/pakyow/presenter/behavior/watching.rb
pakyow-presenter-1.0.0.rc2 lib/pakyow/presenter/behavior/watching.rb
pakyow-presenter-1.0.0.rc1 lib/pakyow/presenter/behavior/watching.rb