Sha256: dbf453d6e35ff0cccdc96727787fc9169fa556bd66f250506da731a2ba638d27

Contents?: true

Size: 925 Bytes

Versions: 5

Compression:

Stored size: 925 Bytes

Contents

require "slim"
require "tailwindcss-rails"
require "importmap-rails"
require "turbo-rails"
require "stimulus-rails"
require "state_machines-activerecord"
require "view_component"

module Signum
  class Engine < ::Rails::Engine
    isolate_namespace Signum

    initializer "signum.assets" do |app|
      app.config.assets.paths << root.join("app/javascript")
      app.config.assets.paths << root.join("app/components")
      app.config.assets.paths << root.join("vendor/javascript")
      app.config.assets.precompile += %w[signum_manifest]
    end

    initializer "signum.importmap", before: "importmap" do |app|
      app.config.importmap.paths << root.join("config/importmap.rb")
      app.config.importmap.cache_sweepers << root.join("app/javascript")
      app.config.importmap.cache_sweepers << root.join("app/components")
      app.config.importmap.cache_sweepers << root.join("vendor/javascript")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
signum-0.7.8 lib/signum/engine.rb
signum-0.7.4 lib/signum/engine.rb
signum-0.7.2 lib/signum/engine.rb
signum-0.7.1 lib/signum/engine.rb
signum-0.7.0 lib/signum/engine.rb