Sha256: 5538c7c609f8e8fdf889d80b8ff83cb53abe957ffb9db9f1462b828b0fc0bf81

Contents?: true

Size: 788 Bytes

Versions: 15

Compression:

Stored size: 788 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 "product_subscription"
            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

15 entries across 15 versions & 1 rubygems

Version Path
shopify-cli-2.13.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.12.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.11.2 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.11.1 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.11.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.10.2 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.10.1 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.10.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.9.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.8.0 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.7.4 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.7.3 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.7.2 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.7.1 lib/project_types/extension/models/server_config/development_renderer.rb
shopify-cli-2.7.0 lib/project_types/extension/models/server_config/development_renderer.rb