Sha256: c15083a882242ac482029517e7c949e3a51440a276c6bec5365ec8913c8fc433

Contents?: true

Size: 853 Bytes

Versions: 481

Compression:

Stored size: 853 Bytes

Contents

# frozen_string_literal: true

require "action_view/railtie"
require "webpacker/react"
require "view_component"

module Playbook
  class Engine < ::Rails::Engine
    isolate_namespace Playbook

    config.generators do |g|
      g.test_framework :rspec
    end

    config.view_component.render_monkey_patch_enabled = false

    if config.respond_to?(:assets)
      config.assets.paths ||= []
      config.assets.paths << Playbook::Engine.root.join("fonts")
      config.assets.paths << Playbook::Engine.root.join("dist")
      config.assets.paths << Playbook::Engine.root.join("app/pb_kits/playbook/pb_*")
    end

    if config.respond_to?(:sass)
      config.sass.load_paths ||= []
      config.sass.load_paths << Playbook::Engine.root.join("dist")
      config.sass.load_paths << Playbook::Engine.root.join("app/pb_kits/playbook")
    end
  end
end

Version data entries

481 entries across 481 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.11 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.10 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.9 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.8 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.7 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.6 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 lib/playbook/engine.rb
playbook_ui-14.12.0.pre.rc.5 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 lib/playbook/engine.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 lib/playbook/engine.rb