Sha256: 9252f41027c3dde5427cccbf7e547e756ac1a3ed787d4079be613c314f0e8725

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

require "sassc-rails"
require "slim-rails"
require "webpacker"
require "webpacker/react"

require "playbook/props"
require "playbook/version"
require "playbook/engine" if defined?(Rails)

module Playbook
  ROOT_PATH = Pathname.new(File.join(__dir__, ".."))

  class ConflictingPropsError < StandardError; end
  class MissingPropError < StandardError; end

  class << self
    def webpacker
      @webpacker ||= ::Webpacker::Instance.new(
        root_path: ROOT_PATH,
        config_path: ROOT_PATH.join("config/webpacker.yml")
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-7.13.0.pre.alpha1 lib/playbook.rb
playbook_ui-7.12.1 lib/playbook.rb
playbook_ui-7.12.0 lib/playbook.rb
playbook_ui-7.11.1 lib/playbook.rb
playbook_ui-7.11.0 lib/playbook.rb