Sha256: d11178387c3d0861486e86123ac1d09129dba1d7f275ebe982133f8cd51e3e49

Contents?: true

Size: 1.67 KB

Versions: 7

Compression:

Stored size: 1.67 KB

Contents

# frozen_string_literal: true

require "pakyow/framework"

require "pakyow/application/behavior/assets"
require "pakyow/application/behavior/assets/packs"
require "pakyow/application/behavior/assets/silencing"
require "pakyow/application/behavior/assets/externals"
require "pakyow/application/behavior/assets/watching"
require "pakyow/application/behavior/assets/prelaunching"
require "pakyow/application/behavior/assets/processing"
require "pakyow/application/config/assets"

require "pakyow/presenter/renderer/behavior/assets/install_assets"

require "pakyow/assets/asset"
require "pakyow/assets/pack"

module Pakyow
  module Assets
    class Framework < Pakyow::Framework(:assets)
      def boot
        object.class_eval do
          # Let other frameworks load their own assets.
          #
          stateful :asset, Asset

          # Let other frameworks load their own asset packs.
          #
          stateful :pack, Pack

          include Application::Config::Assets
          include Application::Behavior::Assets
          include Application::Behavior::Assets::Packs
          include Application::Behavior::Assets::Silencing
          include Application::Behavior::Assets::Externals
          include Application::Behavior::Assets::Watching
          include Application::Behavior::Assets::Prelaunching
          include Application::Behavior::Assets::Processing

          after "load" do
            isolated(:Renderer) do
              # Load this one later, in case other actions define components that will load assets.
              #
              include Presenter::Renderer::Behavior::Assets::InstallAssets
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-assets-1.0.6 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.5 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.4 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.3 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.2 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.1 lib/pakyow/assets/framework.rb
pakyow-assets-1.0.0 lib/pakyow/assets/framework.rb