Sha256: b5e8f0fd3e3911208fbd33550b2cb16ddd3621d67e9809a223eda259ee3c41c2

Contents?: true

Size: 1.36 KB

Versions: 11

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true
module Theme
  class Project < ShopifyCli::ProjectType
    hidden_feature

    title("Theme")
    creator("Theme::Commands::Create")
    connector("Theme::Commands::Connect")

    register_command("Theme::Commands::Deploy", "deploy")
    register_command("Theme::Commands::Generate", "generate")
    register_command("Theme::Commands::Push", "push")
    register_command("Theme::Commands::Serve", "serve")

    register_task("Theme::Tasks::EnsureThemekitInstalled", :ensure_themekit_installed)

    require Project.project_filepath("messages/messages")
    register_messages(Theme::Messages::MESSAGES)
  end

  module Commands
    autoload :Connect, Project.project_filepath("commands/connect")
    autoload :Create, Project.project_filepath("commands/create")
    autoload :Deploy, Project.project_filepath("commands/deploy")
    autoload :Generate, Project.project_filepath("commands/generate")
    autoload :Push, Project.project_filepath("commands/push")
    autoload :Serve, Project.project_filepath("commands/serve")
  end

  module Tasks
    autoload :EnsureThemekitInstalled, Project.project_filepath("tasks/ensure_themekit_installed")
  end

  module Forms
    autoload :Create, Project.project_filepath("forms/create")
    autoload :Connect, Project.project_filepath("forms/connect")
  end

  autoload :Themekit, Project.project_filepath("themekit")
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-1.14.0 lib/project_types/theme/cli.rb
shopify-cli-1.13.1 lib/project_types/theme/cli.rb
shopify-cli-1.13.0 lib/project_types/theme/cli.rb
shopify-cli-1.12.0 lib/project_types/theme/cli.rb
shopify-cli-1.11.0 lib/project_types/theme/cli.rb
shopify-cli-1.10.0 lib/project_types/theme/cli.rb
shopify-cli-1.9.1 lib/project_types/theme/cli.rb
shopify-cli-1.9.0 lib/project_types/theme/cli.rb
shopify-cli-1.8.0 lib/project_types/theme/cli.rb
shopify-cli-1.7.1 lib/project_types/theme/cli.rb
shopify-cli-1.7.0 lib/project_types/theme/cli.rb