Sha256: 67da26f997e9cf683ce8e7d81ac205f4fdb4ee9887e2b8debc6837ca8cb6fe95

Contents?: true

Size: 1 KB

Versions: 78

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

require "sassc-rails"
require "slim-rails"

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

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

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

    initializer "webpacker.proxy" do |app|
      insert_middleware = begin
                          Playbook.webpacker.config.dev_server.present?
                          rescue
                            nil
                        end
      next unless insert_middleware

      app.middleware.insert_before(
        0, Webpacker::DevServerProxy,
        ssl_verify_none: true,
        webpacker: Playbook.webpacker
      )
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

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