Sha256: 3ffbc26a4e07790846958fc9777f29b0a691537d7eecf31bf97cbbcd01b342de

Contents?: true

Size: 786 Bytes

Versions: 9

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

module Extension
  module Models
    module ServerConfig
      class DevelopmentRenderer < Base
        include SmartProperties

        VALID_RENDERERS = [
          "@shopify/admin-ui-extensions",
          "@shopify/post-purchase-ui-extensions",
          "@shopify/checkout-ui-extensions",
        ]

        property! :name, accepts: VALID_RENDERERS

        def self.find(type)
          case type.downcase
          when "admin_ui_extension"
            new(name: "@shopify/admin-ui-extensions")
          when "checkout_ui_extension"
            new(name: "@shopify/checkout-ui-extensions")
          when "checkout_post_purchase"
            new(name: "@shopify/post-purchase-ui-extensions")
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-2.6.6 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.5 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.4 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.3 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.2 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.1 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.6.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.5.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.4.0 lib/project_types/extension/models/server_config/development_renderer.rb