Sha256: f91bcb801f352b26fb225f59bcd8fbe601c5b89be1222d0add221eb8145810fe

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 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/kit_base"
require "playbook/markdown/template_handler"
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.16.0.pre.alpha5 lib/playbook.rb
playbook_ui-7.16.0.pre.alpha4 lib/playbook.rb
playbook_ui-7.16.0.pre.alpha3 lib/playbook.rb
playbook_ui-7.16.0.pre.alpha2 lib/playbook.rb
playbook_ui-7.16.0.pre.alpha1 lib/playbook.rb