Sha256: 0e36d373c6ebbc002f7f7b2d1f1213b703de0f43e7a02917c4cfb0b14e1e79bd

Contents?: true

Size: 924 Bytes

Versions: 22

Compression:

Stored size: 924 Bytes

Contents

module Extension
  module Models
    module ServerConfig
      class Development < Base
        include SmartProperties
        VALID_TEMPLATES = [
          "javascript",
          "javascript-react",
          "typescript",
          "typescript-react",
        ]

        CURRENT_DIRECTORY = "."

        property  :root_dir, accepts: String, default: CURRENT_DIRECTORY
        property! :build_dir, accepts: String, default: "build"
        property  :template, accepts: VALID_TEMPLATES
        property  :renderer, accepts: ServerConfig::DevelopmentRenderer
        property  :entries, accepts: ServerConfig::DevelopmentEntries
        property  :resource, accepts: ServerConfig::DevelopmentResource

        def self.find(type)
          case type.downcase
          when "web_pixel_extension"
            ["javascript"]
          else
            VALID_TEMPLATES
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.35.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.34.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.33.1 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.33.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.32.1 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.32.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.31.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.30.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.29.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.28.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.27.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.26.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.25.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.24.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.23.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.22.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.21.0 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.20.1 lib/project_types/extension/models/server_config/development.rb
shopify-cli-2.20.0 lib/project_types/extension/models/server_config/development.rb