Sha256: b2dc1c3c1d0f5be4530791acfdcfff5b432e886f0f46a8555a91f4397c46446b

Contents?: true

Size: 860 Bytes

Versions: 29

Compression:

Stored size: 860 Bytes

Contents

# frozen_string_literal: true

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

require "playbook/props"
require "playbook/version"
require "playbook/pb_kit_helper"
require "playbook/pb_doc_helper"
require "playbook/kit_base"
require "playbook/kit_resolver"
require "playbook/markdown"
require "playbook/engine" if defined?(Rails)

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

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

module_function

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

  def kit_path(kit, *args)
    Playbook::Engine.root.join("app/pb_kits/playbook/pb_#{kit}", *args)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
playbook_ui-8.2.0.pre.alpha2 lib/playbook.rb
playbook_ui-8.1.1 lib/playbook.rb
playbook_ui-8.0.2 lib/playbook.rb
playbook_ui-8.2.0.pre.alpha1 lib/playbook.rb
playbook_ui-8.1.0 lib/playbook.rb
playbook_ui-8.0.1 lib/playbook.rb
playbook_ui-8.0.0 lib/playbook.rb
playbook_ui-8.0.0.pre.alpha5 lib/playbook.rb
playbook_ui-8.0.0.pre.alpha4 lib/playbook.rb