Sha256: bfc286e0535bf1ab25c9e382b8269d84badc63a732161e2a33ee9591d8ad98db

Contents?: true

Size: 933 Bytes

Versions: 20

Compression:

Stored size: 933 Bytes

Contents

module Coco
  module IntegrationHelper
    def coco_stylesheet_tag(dev: ENV["COCO_PATH"], **)
      stylesheet_link_tag("coco#{"/dev" if dev}/coco", **)
    end

    def coco_stylesheet_file_path(...)
      IntegrationHelper.stylesheet_file_path(...)
    end

    def coco_javascript_file_path(...)
      IntegrationHelper.javascript_file_path(...)
    end

    def coco_tailwind_preset_path(...)
      IntegrationHelper.tailwind_preset_path(...)
    end

    class << self
      def stylesheet_file_path(dev: ENV["COCO_PATH"], **opts)
        File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.css")
      end

      def javascript_file_path(dev: ENV["COCO_PATH"], **opts)
        File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.js")
      end

      def tailwind_preset_path
        File.join(Coco::Engine.root, "app/assets/build/coco/tailwind.preset.js")
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.7 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.6 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.5 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.4 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.3 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.19.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.18.8 app/helpers/coco/integration_helper.rb
coveragebook_components-0.18.7 app/helpers/coco/integration_helper.rb
coveragebook_components-0.18.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.7 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.6 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.5 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.4 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.3 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.17.0 app/helpers/coco/integration_helper.rb