Sha256: 2ed26867c5f7d6a52d57d8b16381ef7f22a33b3b33384c54a7282e007643fc31

Contents?: true

Size: 921 Bytes

Versions: 48

Compression:

Stored size: 921 Bytes

Contents

# frozen_string_literal: true

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

require "playbook/version"

require "playbook/props"
require "playbook/forms"
require "playbook/pb_forms_helper"
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

48 entries across 48 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 lib/playbook.rb
playbook_ui-9.19.0.pre.alphafonts lib/playbook.rb
playbook_ui-9.18.0.flow.bin.alpha lib/playbook.rb
playbook_ui-9.18.0 lib/playbook.rb
playbook_ui-9.17.0 lib/playbook.rb
playbook_ui-9.16.0 lib/playbook.rb
playbook_ui-9.15.0 lib/playbook.rb
playbook_ui-9.14.1.alpha.radio.alignment lib/playbook.rb
playbook_ui-9.14.1.alpha.highcharts9 lib/playbook.rb
playbook_ui-9.14.1 lib/playbook.rb
playbook_ui-9.13.0 lib/playbook.rb
playbook_ui-9.12.0 lib/playbook.rb
playbook_ui-9.12.0.pre.text.addon lib/playbook.rb
playbook_ui-9.11.0 lib/playbook.rb
playbook_ui-9.10.0 lib/playbook.rb
playbook_ui-9.10.0.pre.date.time.stacked.1 lib/playbook.rb
playbook_ui-9.10.0.pre.alpha2 lib/playbook.rb
playbook_ui-9.10.0.pre.alpha1 lib/playbook.rb
playbook_ui-9.9.0.alpha.inline1 lib/playbook.rb
playbook_ui-9.9.0 lib/playbook.rb