Sha256: dbd9c740c38ff9ada3bb2d70bd518a627b39833c9d2ca7e1471563d21752da14

Contents?: true

Size: 862 Bytes

Versions: 8

Compression:

Stored size: 862 Bytes

Contents

require 'slim'
require 'tailwindcss-rails'
require "importmap-rails"
require "turbo-rails"
require "stimulus-rails"

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

8 entries across 8 versions & 1 rubygems

Version Path
signum-0.6.0 lib/signum/engine.rb
signum-0.5.1 lib/signum/engine.rb
signum-0.5.0 lib/signum/engine.rb
signum-0.4.13 lib/signum/engine.rb
signum-0.4.12 lib/signum/engine.rb
signum-0.4.11 lib/signum/engine.rb
signum-0.4.10 lib/signum/engine.rb
signum-0.4.8 lib/signum/engine.rb