Sha256: 755c075711a3158fcabc524f15f1a16ad7e0d56a01df80e046a30e64fed69efb

Contents?: true

Size: 454 Bytes

Versions: 14

Compression:

Stored size: 454 Bytes

Contents

module Shakapacker
  class BaseStrategy
    def initialize
      @config = Shakapacker.config
    end

    def after_compile_hook
      nil
    end

    private

      attr_reader :config

      def default_watched_paths
        [
          *config.additional_paths.map { |path| "#{path}{,/**/*}" },
          "#{config.source_path}{,/**/*}",
          "yarn.lock", "package.json",
          "config/webpack{,/**/*}"
        ].freeze
      end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
shakapacker-7.2.3 lib/shakapacker/base_strategy.rb
shakapacker-7.3.0.beta.1 lib/shakapacker/base_strategy.rb
shakapacker-7.2.2 lib/shakapacker/base_strategy.rb
shakapacker-7.2.1 lib/shakapacker/base_strategy.rb
shakapacker-7.2.0 lib/shakapacker/base_strategy.rb
shakapacker-7.2.0.rc.0 lib/shakapacker/base_strategy.rb
shakapacker-7.1.0 lib/shakapacker/base_strategy.rb
shakapacker-7.0.3 lib/shakapacker/base_strategy.rb
shakapacker-7.0.2 lib/shakapacker/base_strategy.rb
shakapacker-7.0.1 lib/shakapacker/base_strategy.rb
shakapacker-7.0.0 lib/shakapacker/base_strategy.rb
shakapacker-7.0.0.rc.2 lib/shakapacker/base_strategy.rb
shakapacker-7.0.0.rc.1 lib/shakapacker/base_strategy.rb
shakapacker-7.0.0.rc.0 lib/shakapacker/base_strategy.rb