shopify-cli 2.2.2 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -0
  3. data/.github/ISSUE_TEMPLATE.md +0 -4
  4. data/.github/workflows/shopify.yml +104 -0
  5. data/.gitignore +3 -0
  6. data/.rubocop.yml +14 -14
  7. data/.rubocop_todo.yml +3 -3
  8. data/CHANGELOG.md +30 -0
  9. data/CONTRIBUTING.md +23 -0
  10. data/Dockerfile +17 -0
  11. data/Gemfile +1 -0
  12. data/Gemfile.lock +67 -24
  13. data/RELEASING.md +1 -1
  14. data/Rakefile +75 -18
  15. data/bin/console +11 -0
  16. data/bin/shopify +16 -4
  17. data/dev.yml +14 -1
  18. data/ext/shopify-cli/extconf.rb +2 -0
  19. data/ext/shopify-extensions/extconf.rb +21 -0
  20. data/ext/shopify-extensions/shopify_extensions.rb +152 -0
  21. data/ext/shopify-extensions/version +1 -0
  22. data/lib/project_types/extension/cli.rb +19 -3
  23. data/lib/project_types/extension/commands/build.rb +32 -3
  24. data/lib/project_types/extension/commands/check.rb +2 -2
  25. data/lib/project_types/extension/commands/connect.rb +1 -1
  26. data/lib/project_types/extension/commands/create.rb +59 -16
  27. data/lib/project_types/extension/commands/extension_command.rb +1 -1
  28. data/lib/project_types/extension/commands/info.rb +1 -1
  29. data/lib/project_types/extension/commands/push.rb +1 -1
  30. data/lib/project_types/extension/commands/register.rb +2 -2
  31. data/lib/project_types/extension/commands/serve.rb +5 -5
  32. data/lib/project_types/extension/commands/tunnel.rb +6 -6
  33. data/lib/project_types/extension/extension_project.rb +4 -4
  34. data/lib/project_types/extension/features/argo.rb +3 -3
  35. data/lib/project_types/extension/features/argo_config.rb +5 -5
  36. data/lib/project_types/extension/features/argo_serve.rb +21 -6
  37. data/lib/project_types/extension/features/argo_setup.rb +1 -1
  38. data/lib/project_types/extension/features/argo_setup_step.rb +1 -1
  39. data/lib/project_types/extension/features/argo_setup_steps.rb +2 -2
  40. data/lib/project_types/extension/forms/connect.rb +2 -2
  41. data/lib/project_types/extension/forms/create.rb +6 -3
  42. data/lib/project_types/extension/forms/questions/ask_app.rb +2 -2
  43. data/lib/project_types/extension/forms/questions/ask_name.rb +1 -1
  44. data/lib/project_types/extension/forms/questions/ask_registration.rb +2 -2
  45. data/lib/project_types/extension/forms/questions/ask_template.rb +44 -0
  46. data/lib/project_types/extension/forms/questions/ask_type.rb +2 -2
  47. data/lib/project_types/extension/messages/message_loading.rb +2 -2
  48. data/lib/project_types/extension/messages/messages.rb +3 -0
  49. data/lib/project_types/extension/models/development_server.rb +78 -0
  50. data/lib/project_types/extension/models/development_server_requirements.rb +35 -0
  51. data/lib/project_types/extension/models/lazy_specification_handler.rb +1 -1
  52. data/lib/project_types/extension/models/server_config/base.rb +31 -0
  53. data/lib/project_types/extension/models/server_config/development.rb +23 -0
  54. data/lib/project_types/extension/models/server_config/development_entries.rb +38 -0
  55. data/lib/project_types/extension/models/server_config/development_renderer.rb +30 -0
  56. data/lib/project_types/extension/models/server_config/extension.rb +35 -0
  57. data/lib/project_types/extension/models/server_config/root.rb +18 -0
  58. data/lib/project_types/extension/models/server_config/user.rb +10 -0
  59. data/lib/project_types/extension/models/specification.rb +1 -1
  60. data/lib/project_types/extension/models/specification_handlers/checkout_ui_extension.rb +1 -1
  61. data/lib/project_types/extension/models/specification_handlers/default.rb +14 -2
  62. data/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +1 -1
  63. data/lib/project_types/extension/models/specifications.rb +4 -4
  64. data/lib/project_types/extension/tasks/choose_next_available_port.rb +2 -2
  65. data/lib/project_types/extension/tasks/configure_features.rb +1 -1
  66. data/lib/project_types/extension/tasks/configure_options.rb +1 -1
  67. data/lib/project_types/extension/tasks/converters/product_converter.rb +1 -1
  68. data/lib/project_types/extension/tasks/converters/server_config_converter.rb +31 -0
  69. data/lib/project_types/extension/tasks/create_extension.rb +2 -2
  70. data/lib/project_types/extension/tasks/fetch_specifications.rb +2 -2
  71. data/lib/project_types/extension/tasks/find_npm_packages.rb +5 -5
  72. data/lib/project_types/extension/tasks/get_app.rb +2 -2
  73. data/lib/project_types/extension/tasks/get_apps.rb +2 -2
  74. data/lib/project_types/extension/tasks/get_extensions.rb +2 -2
  75. data/lib/project_types/extension/tasks/get_product.rb +2 -2
  76. data/lib/project_types/extension/tasks/load_server_config.rb +23 -0
  77. data/lib/project_types/extension/tasks/run_extension_command.rb +81 -0
  78. data/lib/project_types/extension/tasks/update_draft.rb +2 -2
  79. data/lib/project_types/node/cli.rb +3 -3
  80. data/lib/project_types/node/commands/connect.rb +4 -4
  81. data/lib/project_types/node/commands/create.rb +10 -14
  82. data/lib/project_types/node/commands/deploy/heroku.rb +4 -4
  83. data/lib/project_types/node/commands/deploy.rb +3 -3
  84. data/lib/project_types/node/commands/generate.rb +2 -2
  85. data/lib/project_types/node/commands/open.rb +3 -3
  86. data/lib/project_types/node/commands/serve.rb +15 -7
  87. data/lib/project_types/node/commands/tunnel.rb +6 -6
  88. data/lib/project_types/node/forms/create.rb +3 -3
  89. data/lib/project_types/node/messages/messages.rb +3 -0
  90. data/lib/project_types/php/cli.rb +27 -0
  91. data/lib/project_types/php/commands/connect.rb +19 -0
  92. data/lib/project_types/php/commands/create.rb +143 -0
  93. data/lib/project_types/php/commands/deploy/heroku.rb +129 -0
  94. data/lib/project_types/php/commands/deploy.rb +32 -0
  95. data/lib/project_types/php/commands/open.rb +16 -0
  96. data/lib/project_types/php/commands/serve.rb +51 -0
  97. data/lib/project_types/php/commands/tunnel.rb +37 -0
  98. data/lib/project_types/php/forms/create.rb +45 -0
  99. data/lib/project_types/php/messages/messages.rb +191 -0
  100. data/lib/project_types/rails/cli.rb +3 -3
  101. data/lib/project_types/rails/commands/connect.rb +4 -4
  102. data/lib/project_types/rails/commands/create.rb +12 -16
  103. data/lib/project_types/rails/commands/deploy/heroku.rb +4 -4
  104. data/lib/project_types/rails/commands/deploy.rb +3 -3
  105. data/lib/project_types/rails/commands/generate/webhook.rb +3 -3
  106. data/lib/project_types/rails/commands/generate.rb +3 -3
  107. data/lib/project_types/rails/commands/open.rb +3 -3
  108. data/lib/project_types/rails/commands/serve.rb +8 -8
  109. data/lib/project_types/rails/commands/tunnel.rb +6 -6
  110. data/lib/project_types/rails/forms/create.rb +3 -3
  111. data/lib/project_types/rails/gem.rb +1 -1
  112. data/lib/project_types/rails/ruby.rb +1 -1
  113. data/lib/project_types/script/cli.rb +16 -6
  114. data/lib/project_types/script/commands/create.rb +4 -2
  115. data/lib/project_types/script/commands/push.rb +2 -2
  116. data/lib/project_types/script/config/extension_points.yml +30 -29
  117. data/lib/project_types/script/forms/create.rb +1 -1
  118. data/lib/project_types/script/layers/application/create_script.rb +32 -12
  119. data/lib/project_types/script/layers/application/extension_points.rb +4 -4
  120. data/lib/project_types/script/layers/application/push_script.rb +13 -1
  121. data/lib/project_types/script/layers/domain/extension_point.rb +13 -45
  122. data/lib/project_types/script/layers/domain/push_package.rb +0 -12
  123. data/lib/project_types/script/layers/domain/script_project.rb +2 -2
  124. data/lib/project_types/script/layers/infrastructure/api_clients/partners_proxy_api_client.rb +57 -0
  125. data/lib/project_types/script/layers/infrastructure/api_clients/script_service_api_client.rb +35 -0
  126. data/lib/project_types/script/layers/infrastructure/command_runner.rb +1 -1
  127. data/lib/project_types/script/layers/infrastructure/errors.rb +5 -0
  128. data/lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb +10 -90
  129. data/lib/project_types/script/layers/infrastructure/languages/project_creator.rb +76 -11
  130. data/lib/project_types/script/layers/infrastructure/languages/task_runner.rb +1 -1
  131. data/lib/project_types/script/layers/infrastructure/languages/typescript_project_creator.rb +33 -0
  132. data/lib/project_types/script/layers/infrastructure/languages/typescript_task_runner.rb +105 -0
  133. data/lib/project_types/script/layers/infrastructure/push_package_repository.rb +1 -1
  134. data/lib/project_types/script/layers/infrastructure/script_project_repository.rb +6 -6
  135. data/lib/project_types/script/layers/infrastructure/script_service.rb +25 -144
  136. data/lib/project_types/script/layers/infrastructure/script_uploader.rb +27 -0
  137. data/lib/project_types/script/layers/infrastructure/service_locator.rb +20 -0
  138. data/lib/project_types/script/messages/messages.rb +4 -0
  139. data/lib/project_types/script/tasks/ensure_env.rb +7 -7
  140. data/lib/project_types/script/ui/error_handler.rb +84 -76
  141. data/lib/project_types/script/ui/printing_spinner.rb +1 -1
  142. data/lib/project_types/theme/cli.rb +3 -3
  143. data/lib/project_types/theme/commands/check.rb +3 -3
  144. data/lib/project_types/theme/commands/delete.rb +7 -7
  145. data/lib/project_types/theme/commands/init.rb +3 -3
  146. data/lib/project_types/theme/commands/language_server.rb +2 -2
  147. data/lib/project_types/theme/commands/package.rb +2 -2
  148. data/lib/project_types/theme/commands/publish.rb +5 -5
  149. data/lib/project_types/theme/commands/pull.rb +15 -9
  150. data/lib/project_types/theme/commands/push.rb +18 -12
  151. data/lib/project_types/theme/commands/serve.rb +4 -4
  152. data/lib/project_types/theme/forms/confirm_store.rb +1 -1
  153. data/lib/project_types/theme/forms/select.rb +2 -2
  154. data/lib/{shopify-cli → shopify_cli}/admin_api/populate_resource_command.rb +3 -3
  155. data/lib/{shopify-cli → shopify_cli}/admin_api/schema.rb +4 -4
  156. data/lib/{shopify-cli → shopify_cli}/admin_api.rb +27 -27
  157. data/lib/{shopify-cli → shopify_cli}/api.rb +8 -8
  158. data/lib/shopify_cli/command/app_sub_command.rb +16 -0
  159. data/lib/{shopify-cli → shopify_cli}/command.rb +3 -3
  160. data/lib/{shopify-cli → shopify_cli}/commands/config.rb +14 -14
  161. data/lib/{shopify-cli → shopify_cli}/commands/help.rb +4 -4
  162. data/lib/{shopify-cli → shopify_cli}/commands/login.rb +7 -7
  163. data/lib/shopify_cli/commands/logout.rb +39 -0
  164. data/lib/{shopify-cli → shopify_cli}/commands/populate/customer.rb +4 -4
  165. data/lib/{shopify-cli → shopify_cli}/commands/populate/draft_order.rb +4 -4
  166. data/lib/{shopify-cli → shopify_cli}/commands/populate/product.rb +4 -4
  167. data/lib/shopify_cli/commands/populate.rb +23 -0
  168. data/lib/shopify_cli/commands/store.rb +15 -0
  169. data/lib/{shopify-cli → shopify_cli}/commands/switch.rb +5 -5
  170. data/lib/{shopify-cli → shopify_cli}/commands/system.rb +10 -10
  171. data/lib/shopify_cli/commands/version.rb +15 -0
  172. data/lib/{shopify-cli → shopify_cli}/commands/whoami.rb +7 -7
  173. data/lib/shopify_cli/commands.rb +34 -0
  174. data/lib/{shopify-cli → shopify_cli}/connect.rb +3 -3
  175. data/lib/shopify_cli/constants.rb +54 -0
  176. data/lib/{shopify-cli → shopify_cli}/context.rb +6 -6
  177. data/lib/{shopify-cli → shopify_cli}/core/entry_point.rb +7 -7
  178. data/lib/{shopify-cli → shopify_cli}/core/executor.rb +8 -4
  179. data/lib/{shopify-cli → shopify_cli}/core/finalize.rb +1 -1
  180. data/lib/{shopify-cli → shopify_cli}/core/help_resolver.rb +2 -2
  181. data/lib/{shopify-cli → shopify_cli}/core/monorail.rb +8 -8
  182. data/lib/shopify_cli/core.rb +8 -0
  183. data/lib/{shopify-cli → shopify_cli}/db.rb +8 -8
  184. data/lib/shopify_cli/environment.rb +91 -0
  185. data/lib/shopify_cli/exception_reporter/permission_controller.rb +54 -0
  186. data/lib/shopify_cli/exception_reporter.rb +55 -0
  187. data/lib/{shopify-cli → shopify_cli}/feature.rb +8 -8
  188. data/lib/{shopify-cli → shopify_cli}/form.rb +2 -2
  189. data/lib/{shopify-cli → shopify_cli}/git.rb +38 -8
  190. data/lib/{shopify-cli → shopify_cli}/helpers/haikunator.rb +1 -1
  191. data/lib/shopify_cli/helpers.rb +5 -0
  192. data/lib/{shopify-cli → shopify_cli}/heroku.rb +38 -13
  193. data/lib/{shopify-cli → shopify_cli}/http_request.rb +1 -1
  194. data/lib/{shopify-cli → shopify_cli}/identity_auth/servlet.rb +1 -1
  195. data/lib/{shopify-cli → shopify_cli}/identity_auth.rb +24 -31
  196. data/lib/{shopify-cli → shopify_cli}/js_deps.rb +7 -7
  197. data/lib/{shopify-cli → shopify_cli}/js_system.rb +10 -10
  198. data/lib/{shopify-cli → shopify_cli}/lazy_delegator.rb +2 -2
  199. data/lib/{shopify-cli → shopify_cli}/messages/messages.rb +44 -2
  200. data/lib/{shopify-cli → shopify_cli}/method_object.rb +15 -8
  201. data/lib/shopify_cli/migrator/migration.rb +27 -0
  202. data/lib/shopify_cli/migrator/migrations/1631709766_noop.rb +13 -0
  203. data/lib/shopify_cli/migrator.rb +48 -0
  204. data/lib/{shopify-cli → shopify_cli}/options.rb +1 -1
  205. data/lib/{shopify-cli → shopify_cli}/packager.rb +8 -8
  206. data/lib/{shopify-cli → shopify_cli}/partners_api/organizations.rb +1 -1
  207. data/lib/{shopify-cli → shopify_cli}/partners_api.rb +16 -40
  208. data/lib/shopify_cli/php_deps.rb +102 -0
  209. data/lib/{shopify-cli → shopify_cli}/process_supervision.rb +23 -21
  210. data/lib/{shopify-cli → shopify_cli}/project.rb +15 -15
  211. data/lib/{shopify-cli → shopify_cli}/project_commands.rb +3 -3
  212. data/lib/{shopify-cli → shopify_cli}/project_type.rb +5 -5
  213. data/lib/{shopify-cli → shopify_cli}/resolve_constant.rb +5 -5
  214. data/lib/{shopify-cli → shopify_cli}/resources/env_file.rb +1 -1
  215. data/lib/shopify_cli/resources.rb +5 -0
  216. data/lib/{shopify-cli → shopify_cli}/result.rb +11 -11
  217. data/lib/{shopify-cli → shopify_cli}/shopifolk.rb +6 -6
  218. data/lib/{shopify-cli → shopify_cli}/sub_command.rb +1 -1
  219. data/lib/{shopify-cli → shopify_cli}/task.rb +1 -1
  220. data/lib/{shopify-cli → shopify_cli}/tasks/confirm_store.rb +3 -3
  221. data/lib/{shopify-cli → shopify_cli}/tasks/create_api_client.rb +4 -4
  222. data/lib/shopify_cli/tasks/ensure_authenticated.rb +13 -0
  223. data/lib/{shopify-cli → shopify_cli}/tasks/ensure_dev_store.rb +5 -5
  224. data/lib/{shopify-cli → shopify_cli}/tasks/ensure_env.rb +3 -3
  225. data/lib/{shopify-cli → shopify_cli}/tasks/ensure_loopback_url.rb +4 -4
  226. data/lib/{shopify-cli → shopify_cli}/tasks/ensure_project_type.rb +3 -3
  227. data/lib/{shopify-cli → shopify_cli}/tasks/select_org_and_shop.rb +8 -8
  228. data/lib/{shopify-cli → shopify_cli}/tasks/update_dashboard_urls.rb +6 -6
  229. data/lib/{shopify-cli → shopify_cli}/tasks.rb +10 -10
  230. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/certificate_manager.rb +5 -5
  231. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/header_hash.rb +5 -1
  232. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/hot-reload.js +0 -0
  233. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/hot_reload.rb +5 -6
  234. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/local_assets.rb +1 -1
  235. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/proxy.rb +15 -3
  236. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/sse.rb +1 -1
  237. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/watcher.rb +1 -1
  238. data/lib/{shopify-cli → shopify_cli}/theme/dev_server/web_server.rb +1 -1
  239. data/lib/{shopify-cli → shopify_cli}/theme/dev_server.rb +3 -3
  240. data/lib/shopify_cli/theme/development_theme.rb +83 -0
  241. data/lib/{shopify-cli → shopify_cli}/theme/file.rb +12 -4
  242. data/lib/{shopify-cli → shopify_cli}/theme/ignore_filter.rb +8 -1
  243. data/lib/{shopify-cli → shopify_cli}/theme/mime_type.rb +1 -1
  244. data/lib/{shopify-cli → shopify_cli}/theme/syncer.rb +7 -7
  245. data/lib/{shopify-cli → shopify_cli}/theme/theme.rb +4 -4
  246. data/lib/{shopify-cli → shopify_cli}/transform_data_structure.rb +4 -4
  247. data/lib/{shopify-cli → shopify_cli}/tunnel.rb +14 -14
  248. data/lib/shopify_cli/version.rb +3 -0
  249. data/lib/shopify_cli.rb +61 -50
  250. data/shopify-cli.gemspec +13 -5
  251. data/utilities/docker.rb +47 -0
  252. data/utilities/utilities.rb +5 -0
  253. metadata +155 -97
  254. data/.github/workflows/build.yml +0 -28
  255. data/lib/project_types/script/layers/infrastructure/languages/rust_project_creator.rb +0 -73
  256. data/lib/project_types/script/layers/infrastructure/languages/rust_task_runner.rb +0 -60
  257. data/lib/shopify-cli/commands/logout.rb +0 -39
  258. data/lib/shopify-cli/commands/populate.rb +0 -23
  259. data/lib/shopify-cli/commands/store.rb +0 -15
  260. data/lib/shopify-cli/commands/version.rb +0 -15
  261. data/lib/shopify-cli/commands.rb +0 -34
  262. data/lib/shopify-cli/core.rb +0 -8
  263. data/lib/shopify-cli/helpers.rb +0 -5
  264. data/lib/shopify-cli/resources.rb +0 -5
  265. data/lib/shopify-cli/tasks/ensure_authenticated.rb +0 -13
  266. data/lib/shopify-cli/theme/development_theme.rb +0 -69
  267. data/lib/shopify-cli/version.rb +0 -3
data/lib/shopify_cli.rb CHANGED
@@ -24,7 +24,9 @@ end
24
24
  require "cli/ui"
25
25
  require "cli/kit"
26
26
  require "smart_properties"
27
- require_relative "shopify-cli/version"
27
+ require_relative "shopify_cli/version"
28
+ require_relative "shopify_cli/migrator"
29
+ require_relative "shopify_cli/exception_reporter"
28
30
 
29
31
  # Enable stdout routing. At this point all calls to STDOUT (and STDERR) will go through this class.
30
32
  # See https://github.com/Shopify/cli-ui/blob/main/lib/cli/ui/stdout_router.rb for more info
@@ -36,7 +38,7 @@ CLI::UI::StdoutRouter.enable
36
38
  #
37
39
  # It is recommended to read through CLI Kit (https://github.com/shopify/cli-kit) and a CLI Kit example
38
40
  # (https://github.com/Shopify/cli-kit-example) to fully understand how shopify-cli functions
39
- module ShopifyCli
41
+ module ShopifyCLI
40
42
  extend CLI::Kit::Autocall
41
43
 
42
44
  TOOL_NAME = "shopify"
@@ -75,64 +77,67 @@ module ShopifyCli
75
77
  # application and CLI kit framework.
76
78
  # To understand how this works, read https://github.com/Shopify/cli-kit/blob/main/lib/cli/kit.rb
77
79
 
78
- # ShopifyCli::Config
80
+ # ShopifyCLI::Config
79
81
  autocall(:Config) { CLI::Kit::Config.new(tool_name: TOOL_NAME) }
80
- # ShopifyCli::Logger
81
- autocall(:Logger) { CLI::Kit::Logger.new(debug_log_file: ShopifyCli.debug_log_file) }
82
- # ShopifyCli::Resolver
82
+ # ShopifyCLI::Logger
83
+ autocall(:Logger) { CLI::Kit::Logger.new(debug_log_file: ShopifyCLI.debug_log_file) }
84
+ # ShopifyCLI::Resolver
83
85
  autocall(:Resolver) do
84
- ShopifyCli::Core::HelpResolver.new(
86
+ ShopifyCLI::Core::HelpResolver.new(
85
87
  tool_name: TOOL_NAME,
86
- command_registry: ShopifyCli::Commands::Registry
88
+ command_registry: ShopifyCLI::Commands::Registry
87
89
  )
88
90
  end
89
- # ShopifyCli::ErrorHandler
91
+ # ShopifyCLI::ErrorHandler
90
92
  autocall(:ErrorHandler) do
91
93
  CLI::Kit::ErrorHandler.new(
92
- log_file: ShopifyCli.log_file,
93
- exception_reporter: nil,
94
+ log_file: ShopifyCLI.log_file,
95
+ exception_reporter: ->() { ShopifyCLI::ExceptionReporter },
94
96
  )
95
97
  end
96
98
 
97
- autoload :AdminAPI, "shopify-cli/admin_api"
98
- autoload :API, "shopify-cli/api"
99
- autoload :Command, "shopify-cli/command"
100
- autoload :Commands, "shopify-cli/commands"
101
- autoload :Connect, "shopify-cli/connect"
102
- autoload :Context, "shopify-cli/context"
103
- autoload :Core, "shopify-cli/core"
104
- autoload :DB, "shopify-cli/db"
105
- autoload :Feature, "shopify-cli/feature"
106
- autoload :Form, "shopify-cli/form"
107
- autoload :Git, "shopify-cli/git"
108
- autoload :Helpers, "shopify-cli/helpers"
109
- autoload :Heroku, "shopify-cli/heroku"
110
- autoload :IdentityAuth, "shopify-cli/identity_auth"
111
- autoload :JsDeps, "shopify-cli/js_deps"
112
- autoload :JsSystem, "shopify-cli/js_system"
113
- autoload :LazyDelegator, "shopify-cli/lazy_delegator"
114
- autoload :MethodObject, "shopify-cli/method_object"
115
- autoload :Options, "shopify-cli/options"
116
- autoload :PartnersAPI, "shopify-cli/partners_api"
117
- autoload :ProcessSupervision, "shopify-cli/process_supervision"
118
- autoload :Project, "shopify-cli/project"
119
- autoload :ProjectCommands, "shopify-cli/project_commands"
120
- autoload :ProjectType, "shopify-cli/project_type"
121
- autoload :ResolveConstant, "shopify-cli/resolve_constant"
122
- autoload :Resources, "shopify-cli/resources"
123
- autoload :Result, "shopify-cli/result"
124
- autoload :Shopifolk, "shopify-cli/shopifolk"
125
- autoload :SubCommand, "shopify-cli/sub_command"
126
- autoload :Task, "shopify-cli/task"
127
- autoload :Tasks, "shopify-cli/tasks"
128
- autoload :TransformDataStructure, "shopify-cli/transform_data_structure"
129
- autoload :Tunnel, "shopify-cli/tunnel"
130
-
131
- require "shopify-cli/messages/messages"
132
- Context.load_messages(ShopifyCli::Messages::MESSAGES)
99
+ autoload :Constants, "shopify_cli/constants"
100
+ autoload :Environment, "shopify_cli/environment"
101
+ autoload :AdminAPI, "shopify_cli/admin_api"
102
+ autoload :API, "shopify_cli/api"
103
+ autoload :Command, "shopify_cli/command"
104
+ autoload :Commands, "shopify_cli/commands"
105
+ autoload :Connect, "shopify_cli/connect"
106
+ autoload :Context, "shopify_cli/context"
107
+ autoload :Core, "shopify_cli/core"
108
+ autoload :DB, "shopify_cli/db"
109
+ autoload :Feature, "shopify_cli/feature"
110
+ autoload :Form, "shopify_cli/form"
111
+ autoload :Git, "shopify_cli/git"
112
+ autoload :Helpers, "shopify_cli/helpers"
113
+ autoload :Heroku, "shopify_cli/heroku"
114
+ autoload :IdentityAuth, "shopify_cli/identity_auth"
115
+ autoload :JsDeps, "shopify_cli/js_deps"
116
+ autoload :JsSystem, "shopify_cli/js_system"
117
+ autoload :PHPDeps, "shopify_cli/php_deps"
118
+ autoload :LazyDelegator, "shopify_cli/lazy_delegator"
119
+ autoload :MethodObject, "shopify_cli/method_object"
120
+ autoload :Options, "shopify_cli/options"
121
+ autoload :PartnersAPI, "shopify_cli/partners_api"
122
+ autoload :ProcessSupervision, "shopify_cli/process_supervision"
123
+ autoload :Project, "shopify_cli/project"
124
+ autoload :ProjectCommands, "shopify_cli/project_commands"
125
+ autoload :ProjectType, "shopify_cli/project_type"
126
+ autoload :ResolveConstant, "shopify_cli/resolve_constant"
127
+ autoload :Resources, "shopify_cli/resources"
128
+ autoload :Result, "shopify_cli/result"
129
+ autoload :Shopifolk, "shopify_cli/shopifolk"
130
+ autoload :SubCommand, "shopify_cli/sub_command"
131
+ autoload :Task, "shopify_cli/task"
132
+ autoload :Tasks, "shopify_cli/tasks"
133
+ autoload :TransformDataStructure, "shopify_cli/transform_data_structure"
134
+ autoload :Tunnel, "shopify_cli/tunnel"
135
+
136
+ require "shopify_cli/messages/messages"
137
+ Context.load_messages(ShopifyCLI::Messages::MESSAGES)
133
138
 
134
139
  def self.cache_dir
135
- cache_dir = if ENV.key?("RUNNING_SHOPIFY_CLI_TESTS")
140
+ cache_dir = if Environment.test?
136
141
  TEMP_DIR
137
142
  elsif ENV["LOCALAPPDATA"].nil?
138
143
  File.join(File.expand_path(ENV.fetch("XDG_CACHE_HOME", "~/.cache")), TOOL_NAME)
@@ -147,7 +152,7 @@ module ShopifyCli
147
152
  end
148
153
 
149
154
  def self.tool_config_path
150
- if ENV.key?("RUNNING_SHOPIFY_CLI_TESTS")
155
+ if Environment.test?
151
156
  TEMP_DIR
152
157
  elsif ENV["APPDATA"].nil?
153
158
  File.join(File.expand_path(ENV.fetch("XDG_CONFIG_HOME", "~/.config")), TOOL_NAME)
@@ -166,6 +171,12 @@ module ShopifyCli
166
171
 
167
172
  def self.sha
168
173
  return @sha if defined?(@sha)
169
- @sha = Git.sha(dir: ShopifyCli::ROOT)
174
+ @sha = Git.sha(dir: ShopifyCLI::ROOT)
175
+ end
176
+
177
+ # Migrate runs migrations that migrate the state of the environment
178
+ # in which the CLI runs.
179
+ unless ShopifyCLI::Environment.test? || ShopifyCLI::Environment.development?
180
+ ShopifyCLI::Migrator.migrate
170
181
  end
171
182
  end
data/shopify-cli.gemspec CHANGED
@@ -1,8 +1,8 @@
1
- require_relative "lib/shopify-cli/version"
1
+ require_relative "lib/shopify_cli/version"
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "shopify-cli"
5
- spec.version = ShopifyCli::VERSION
5
+ spec.version = ShopifyCLI::VERSION
6
6
  spec.authors = ["Shopify"]
7
7
  spec.email = ["dev-tools-education@shopify.com"]
8
8
  spec.license = "MIT"
@@ -39,10 +39,18 @@ Gem::Specification.new do |spec|
39
39
  # `/usr/local/bin/shopify` to that script, in order to "lock" the Ruby used to
40
40
  # a single Ruby (useful for debugging in multi-Ruby environments)
41
41
 
42
- spec.add_development_dependency("bundler", "~> 2.1.4")
42
+ spec.add_development_dependency("bundler", "~> 2.2.2")
43
43
  spec.add_development_dependency("rake", "~> 12.3", ">= 12.3.3")
44
44
  spec.add_development_dependency("minitest", "~> 5.0")
45
45
 
46
- spec.add_dependency("listen", "~> 3.5")
47
- spec.add_dependency("theme-check", "~> 1.1")
46
+ spec.add_dependency("bugsnag", "~> 6.22")
47
+ spec.add_dependency("listen", "~> 3.7.0")
48
+
49
+ # Note: theme-check is _intentionally_ not specifying the third
50
+ # digit. We _want_ new features to make their way into new installs
51
+ # of the Shopify CLI. Otherwise updates need to be released twice.
52
+ #
53
+ # That is, DO USE ~> 1.X, DO NOT USE ~> 1.X.Y, this would unnecessarily
54
+ # fix the feature version.
55
+ spec.add_dependency("theme-check", "~> 1.7")
48
56
  end
@@ -0,0 +1,47 @@
1
+ require "open3"
2
+
3
+ module Utilities
4
+ module Docker
5
+ Error = Class.new(StandardError)
6
+
7
+ class << self
8
+ def run_and_rm_container(*args)
9
+ build_image_if_needed
10
+ system(
11
+ "docker", "run",
12
+ "-t", "--rm",
13
+ "--volume", "#{Shellwords.escape(root_dir)}:/usr/src/app",
14
+ image_tag,
15
+ *args
16
+ ) || abort
17
+ end
18
+
19
+ private
20
+
21
+ def root_dir
22
+ File.expand_path("..", __dir__)
23
+ end
24
+
25
+ def build_image_if_needed
26
+ unless image_exists?(image_tag)
27
+ system("docker", "build", root_dir, "-t", image_tag) || abort
28
+ end
29
+ end
30
+
31
+ def image_tag
32
+ gemfile_lock_path = File.expand_path("./Gemfile.lock", root_dir)
33
+ image_sha = Digest::SHA256.hexdigest(File.read(gemfile_lock_path))
34
+ "shopify-cli-#{image_sha}"
35
+ end
36
+
37
+ def image_exists?(tag)
38
+ _, stat = Open3.capture2(
39
+ "docker", "inspect",
40
+ "--type=image",
41
+ tag
42
+ )
43
+ stat.success?
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(__dir__) unless $LOAD_PATH.include?(__dir__)
2
+
3
+ module Utilities
4
+ autoload :Docker, "docker"
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.4
19
+ version: 2.2.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.4
26
+ version: 2.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,34 +58,48 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '5.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: bugsnag
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '6.22'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '6.22'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: listen
63
77
  requirement: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - "~>"
66
80
  - !ruby/object:Gem::Version
67
- version: '3.5'
81
+ version: 3.7.0
68
82
  type: :runtime
69
83
  prerelease: false
70
84
  version_requirements: !ruby/object:Gem::Requirement
71
85
  requirements:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
- version: '3.5'
88
+ version: 3.7.0
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: theme-check
77
91
  requirement: !ruby/object:Gem::Requirement
78
92
  requirements:
79
93
  - - "~>"
80
94
  - !ruby/object:Gem::Version
81
- version: '1.1'
95
+ version: '1.7'
82
96
  type: :runtime
83
97
  prerelease: false
84
98
  version_requirements: !ruby/object:Gem::Requirement
85
99
  requirements:
86
100
  - - "~>"
87
101
  - !ruby/object:Gem::Version
88
- version: '1.1'
102
+ version: '1.7'
89
103
  description: |
90
104
  Shopify CLI helps you build Shopify apps faster. It quickly scaffolds Node.js
91
105
  and Ruby on Rails embedded apps. It also automates many common tasks in the
@@ -105,7 +119,7 @@ files:
105
119
  - ".github/ISSUE_TEMPLATE.md"
106
120
  - ".github/PULL_REQUEST_TEMPLATE.md"
107
121
  - ".github/probots.yml"
108
- - ".github/workflows/build.yml"
122
+ - ".github/workflows/shopify.yml"
109
123
  - ".github/workflows/triage.yml"
110
124
  - ".gitignore"
111
125
  - ".rubocop.yml"
@@ -114,6 +128,8 @@ files:
114
128
  - ".tmp/.gitkeep"
115
129
  - ".tmp/sv/.gitkeep"
116
130
  - CHANGELOG.md
131
+ - CONTRIBUTING.md
132
+ - Dockerfile
117
133
  - Gemfile
118
134
  - Gemfile.lock
119
135
  - LICENSE
@@ -122,6 +138,7 @@ files:
122
138
  - Rakefile
123
139
  - SECURITY.md
124
140
  - THEMEKIT_MIGRATION.md
141
+ - bin/console
125
142
  - bin/load_shopify.rb
126
143
  - bin/shopify
127
144
  - dev.yml
@@ -139,6 +156,9 @@ files:
139
156
  - docs/help/start-app/index.md
140
157
  - docs/index.md
141
158
  - ext/shopify-cli/extconf.rb
159
+ - ext/shopify-extensions/extconf.rb
160
+ - ext/shopify-extensions/shopify_extensions.rb
161
+ - ext/shopify-extensions/version
142
162
  - install.sh
143
163
  - lib/docgen/class_template.md.erb
144
164
  - lib/docgen/index_template.md.erb
@@ -192,14 +212,24 @@ files:
192
212
  - lib/project_types/extension/forms/questions/ask_app.rb
193
213
  - lib/project_types/extension/forms/questions/ask_name.rb
194
214
  - lib/project_types/extension/forms/questions/ask_registration.rb
215
+ - lib/project_types/extension/forms/questions/ask_template.rb
195
216
  - lib/project_types/extension/forms/questions/ask_type.rb
196
217
  - lib/project_types/extension/messages/message_loading.rb
197
218
  - lib/project_types/extension/messages/messages.rb
198
219
  - lib/project_types/extension/models/app.rb
220
+ - lib/project_types/extension/models/development_server.rb
221
+ - lib/project_types/extension/models/development_server_requirements.rb
199
222
  - lib/project_types/extension/models/lazy_specification_handler.rb
200
223
  - lib/project_types/extension/models/npm_package.rb
201
224
  - lib/project_types/extension/models/product.rb
202
225
  - lib/project_types/extension/models/registration.rb
226
+ - lib/project_types/extension/models/server_config/base.rb
227
+ - lib/project_types/extension/models/server_config/development.rb
228
+ - lib/project_types/extension/models/server_config/development_entries.rb
229
+ - lib/project_types/extension/models/server_config/development_renderer.rb
230
+ - lib/project_types/extension/models/server_config/extension.rb
231
+ - lib/project_types/extension/models/server_config/root.rb
232
+ - lib/project_types/extension/models/server_config/user.rb
203
233
  - lib/project_types/extension/models/specification.rb
204
234
  - lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
205
235
  - lib/project_types/extension/models/specification_handlers/checkout_ui_extension.rb
@@ -214,6 +244,7 @@ files:
214
244
  - lib/project_types/extension/tasks/converters/app_converter.rb
215
245
  - lib/project_types/extension/tasks/converters/product_converter.rb
216
246
  - lib/project_types/extension/tasks/converters/registration_converter.rb
247
+ - lib/project_types/extension/tasks/converters/server_config_converter.rb
217
248
  - lib/project_types/extension/tasks/converters/validation_error_converter.rb
218
249
  - lib/project_types/extension/tasks/converters/version_converter.rb
219
250
  - lib/project_types/extension/tasks/create_extension.rb
@@ -223,6 +254,8 @@ files:
223
254
  - lib/project_types/extension/tasks/get_apps.rb
224
255
  - lib/project_types/extension/tasks/get_extensions.rb
225
256
  - lib/project_types/extension/tasks/get_product.rb
257
+ - lib/project_types/extension/tasks/load_server_config.rb
258
+ - lib/project_types/extension/tasks/run_extension_command.rb
226
259
  - lib/project_types/extension/tasks/update_draft.rb
227
260
  - lib/project_types/extension/tasks/user_errors.rb
228
261
  - lib/project_types/node/cli.rb
@@ -236,6 +269,16 @@ files:
236
269
  - lib/project_types/node/commands/tunnel.rb
237
270
  - lib/project_types/node/forms/create.rb
238
271
  - lib/project_types/node/messages/messages.rb
272
+ - lib/project_types/php/cli.rb
273
+ - lib/project_types/php/commands/connect.rb
274
+ - lib/project_types/php/commands/create.rb
275
+ - lib/project_types/php/commands/deploy.rb
276
+ - lib/project_types/php/commands/deploy/heroku.rb
277
+ - lib/project_types/php/commands/open.rb
278
+ - lib/project_types/php/commands/serve.rb
279
+ - lib/project_types/php/commands/tunnel.rb
280
+ - lib/project_types/php/forms/create.rb
281
+ - lib/project_types/php/messages/messages.rb
239
282
  - lib/project_types/rails/cli.rb
240
283
  - lib/project_types/rails/commands/connect.rb
241
284
  - lib/project_types/rails/commands/create.rb
@@ -272,18 +315,22 @@ files:
272
315
  - lib/project_types/script/layers/domain/push_package.rb
273
316
  - lib/project_types/script/layers/domain/script_json.rb
274
317
  - lib/project_types/script/layers/domain/script_project.rb
318
+ - lib/project_types/script/layers/infrastructure/api_clients/partners_proxy_api_client.rb
319
+ - lib/project_types/script/layers/infrastructure/api_clients/script_service_api_client.rb
275
320
  - lib/project_types/script/layers/infrastructure/command_runner.rb
276
321
  - lib/project_types/script/layers/infrastructure/errors.rb
277
322
  - lib/project_types/script/layers/infrastructure/extension_point_repository.rb
278
323
  - lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
279
324
  - lib/project_types/script/layers/infrastructure/languages/assemblyscript_task_runner.rb
280
325
  - lib/project_types/script/layers/infrastructure/languages/project_creator.rb
281
- - lib/project_types/script/layers/infrastructure/languages/rust_project_creator.rb
282
- - lib/project_types/script/layers/infrastructure/languages/rust_task_runner.rb
283
326
  - lib/project_types/script/layers/infrastructure/languages/task_runner.rb
327
+ - lib/project_types/script/layers/infrastructure/languages/typescript_project_creator.rb
328
+ - lib/project_types/script/layers/infrastructure/languages/typescript_task_runner.rb
284
329
  - lib/project_types/script/layers/infrastructure/push_package_repository.rb
285
330
  - lib/project_types/script/layers/infrastructure/script_project_repository.rb
286
331
  - lib/project_types/script/layers/infrastructure/script_service.rb
332
+ - lib/project_types/script/layers/infrastructure/script_uploader.rb
333
+ - lib/project_types/script/layers/infrastructure/service_locator.rb
287
334
  - lib/project_types/script/messages/messages.rb
288
335
  - lib/project_types/script/tasks/ensure_env.rb
289
336
  - lib/project_types/script/ui/error_handler.rb
@@ -304,96 +351,107 @@ files:
304
351
  - lib/project_types/theme/messages/messages.rb
305
352
  - lib/project_types/theme/ui/sync_progress_bar.rb
306
353
  - lib/rubygems_plugin.rb
307
- - lib/shopify-cli/admin_api.rb
308
- - lib/shopify-cli/admin_api/populate_resource_command.rb
309
- - lib/shopify-cli/admin_api/schema.rb
310
- - lib/shopify-cli/api.rb
311
- - lib/shopify-cli/command.rb
312
- - lib/shopify-cli/commands.rb
313
- - lib/shopify-cli/commands/config.rb
314
- - lib/shopify-cli/commands/help.rb
315
- - lib/shopify-cli/commands/login.rb
316
- - lib/shopify-cli/commands/logout.rb
317
- - lib/shopify-cli/commands/populate.rb
318
- - lib/shopify-cli/commands/populate/customer.rb
319
- - lib/shopify-cli/commands/populate/draft_order.rb
320
- - lib/shopify-cli/commands/populate/product.rb
321
- - lib/shopify-cli/commands/store.rb
322
- - lib/shopify-cli/commands/switch.rb
323
- - lib/shopify-cli/commands/system.rb
324
- - lib/shopify-cli/commands/version.rb
325
- - lib/shopify-cli/commands/whoami.rb
326
- - lib/shopify-cli/connect.rb
327
- - lib/shopify-cli/context.rb
328
- - lib/shopify-cli/core.rb
329
- - lib/shopify-cli/core/entry_point.rb
330
- - lib/shopify-cli/core/executor.rb
331
- - lib/shopify-cli/core/finalize.rb
332
- - lib/shopify-cli/core/help_resolver.rb
333
- - lib/shopify-cli/core/monorail.rb
334
- - lib/shopify-cli/db.rb
335
- - lib/shopify-cli/feature.rb
336
- - lib/shopify-cli/form.rb
337
- - lib/shopify-cli/git.rb
338
- - lib/shopify-cli/helpers.rb
339
- - lib/shopify-cli/helpers/haikunator.rb
340
- - lib/shopify-cli/heroku.rb
341
- - lib/shopify-cli/http_request.rb
342
- - lib/shopify-cli/identity_auth.rb
343
- - lib/shopify-cli/identity_auth/servlet.rb
344
- - lib/shopify-cli/js_deps.rb
345
- - lib/shopify-cli/js_system.rb
346
- - lib/shopify-cli/lazy_delegator.rb
347
- - lib/shopify-cli/messages/messages.rb
348
- - lib/shopify-cli/method_object.rb
349
- - lib/shopify-cli/options.rb
350
- - lib/shopify-cli/packager.rb
351
- - lib/shopify-cli/partners_api.rb
352
- - lib/shopify-cli/partners_api/organizations.rb
353
- - lib/shopify-cli/process_supervision.rb
354
- - lib/shopify-cli/project.rb
355
- - lib/shopify-cli/project_commands.rb
356
- - lib/shopify-cli/project_type.rb
357
- - lib/shopify-cli/resolve_constant.rb
358
- - lib/shopify-cli/resources.rb
359
- - lib/shopify-cli/resources/env_file.rb
360
- - lib/shopify-cli/result.rb
361
- - lib/shopify-cli/shopifolk.rb
362
- - lib/shopify-cli/sub_command.rb
363
- - lib/shopify-cli/task.rb
364
- - lib/shopify-cli/tasks.rb
365
- - lib/shopify-cli/tasks/confirm_store.rb
366
- - lib/shopify-cli/tasks/create_api_client.rb
367
- - lib/shopify-cli/tasks/ensure_authenticated.rb
368
- - lib/shopify-cli/tasks/ensure_dev_store.rb
369
- - lib/shopify-cli/tasks/ensure_env.rb
370
- - lib/shopify-cli/tasks/ensure_loopback_url.rb
371
- - lib/shopify-cli/tasks/ensure_project_type.rb
372
- - lib/shopify-cli/tasks/select_org_and_shop.rb
373
- - lib/shopify-cli/tasks/update_dashboard_urls.rb
374
- - lib/shopify-cli/theme/dev_server.rb
375
- - lib/shopify-cli/theme/dev_server/certificate_manager.rb
376
- - lib/shopify-cli/theme/dev_server/header_hash.rb
377
- - lib/shopify-cli/theme/dev_server/hot-reload.js
378
- - lib/shopify-cli/theme/dev_server/hot_reload.rb
379
- - lib/shopify-cli/theme/dev_server/local_assets.rb
380
- - lib/shopify-cli/theme/dev_server/proxy.rb
381
- - lib/shopify-cli/theme/dev_server/sse.rb
382
- - lib/shopify-cli/theme/dev_server/watcher.rb
383
- - lib/shopify-cli/theme/dev_server/web_server.rb
384
- - lib/shopify-cli/theme/development_theme.rb
385
- - lib/shopify-cli/theme/file.rb
386
- - lib/shopify-cli/theme/ignore_filter.rb
387
- - lib/shopify-cli/theme/mime_type.rb
388
- - lib/shopify-cli/theme/syncer.rb
389
- - lib/shopify-cli/theme/theme.rb
390
- - lib/shopify-cli/transform_data_structure.rb
391
- - lib/shopify-cli/tunnel.rb
392
- - lib/shopify-cli/version.rb
393
354
  - lib/shopify_cli.rb
355
+ - lib/shopify_cli/admin_api.rb
356
+ - lib/shopify_cli/admin_api/populate_resource_command.rb
357
+ - lib/shopify_cli/admin_api/schema.rb
358
+ - lib/shopify_cli/api.rb
359
+ - lib/shopify_cli/command.rb
360
+ - lib/shopify_cli/command/app_sub_command.rb
361
+ - lib/shopify_cli/commands.rb
362
+ - lib/shopify_cli/commands/config.rb
363
+ - lib/shopify_cli/commands/help.rb
364
+ - lib/shopify_cli/commands/login.rb
365
+ - lib/shopify_cli/commands/logout.rb
366
+ - lib/shopify_cli/commands/populate.rb
367
+ - lib/shopify_cli/commands/populate/customer.rb
368
+ - lib/shopify_cli/commands/populate/draft_order.rb
369
+ - lib/shopify_cli/commands/populate/product.rb
370
+ - lib/shopify_cli/commands/store.rb
371
+ - lib/shopify_cli/commands/switch.rb
372
+ - lib/shopify_cli/commands/system.rb
373
+ - lib/shopify_cli/commands/version.rb
374
+ - lib/shopify_cli/commands/whoami.rb
375
+ - lib/shopify_cli/connect.rb
376
+ - lib/shopify_cli/constants.rb
377
+ - lib/shopify_cli/context.rb
378
+ - lib/shopify_cli/core.rb
379
+ - lib/shopify_cli/core/entry_point.rb
380
+ - lib/shopify_cli/core/executor.rb
381
+ - lib/shopify_cli/core/finalize.rb
382
+ - lib/shopify_cli/core/help_resolver.rb
383
+ - lib/shopify_cli/core/monorail.rb
384
+ - lib/shopify_cli/db.rb
385
+ - lib/shopify_cli/environment.rb
386
+ - lib/shopify_cli/exception_reporter.rb
387
+ - lib/shopify_cli/exception_reporter/permission_controller.rb
388
+ - lib/shopify_cli/feature.rb
389
+ - lib/shopify_cli/form.rb
390
+ - lib/shopify_cli/git.rb
391
+ - lib/shopify_cli/helpers.rb
392
+ - lib/shopify_cli/helpers/haikunator.rb
393
+ - lib/shopify_cli/heroku.rb
394
+ - lib/shopify_cli/http_request.rb
395
+ - lib/shopify_cli/identity_auth.rb
396
+ - lib/shopify_cli/identity_auth/servlet.rb
397
+ - lib/shopify_cli/js_deps.rb
398
+ - lib/shopify_cli/js_system.rb
399
+ - lib/shopify_cli/lazy_delegator.rb
400
+ - lib/shopify_cli/messages/messages.rb
401
+ - lib/shopify_cli/method_object.rb
402
+ - lib/shopify_cli/migrator.rb
403
+ - lib/shopify_cli/migrator/migration.rb
404
+ - lib/shopify_cli/migrator/migrations/1631709766_noop.rb
405
+ - lib/shopify_cli/options.rb
406
+ - lib/shopify_cli/packager.rb
407
+ - lib/shopify_cli/partners_api.rb
408
+ - lib/shopify_cli/partners_api/organizations.rb
409
+ - lib/shopify_cli/php_deps.rb
410
+ - lib/shopify_cli/process_supervision.rb
411
+ - lib/shopify_cli/project.rb
412
+ - lib/shopify_cli/project_commands.rb
413
+ - lib/shopify_cli/project_type.rb
414
+ - lib/shopify_cli/resolve_constant.rb
415
+ - lib/shopify_cli/resources.rb
416
+ - lib/shopify_cli/resources/env_file.rb
417
+ - lib/shopify_cli/result.rb
418
+ - lib/shopify_cli/shopifolk.rb
419
+ - lib/shopify_cli/sub_command.rb
420
+ - lib/shopify_cli/task.rb
421
+ - lib/shopify_cli/tasks.rb
422
+ - lib/shopify_cli/tasks/confirm_store.rb
423
+ - lib/shopify_cli/tasks/create_api_client.rb
424
+ - lib/shopify_cli/tasks/ensure_authenticated.rb
425
+ - lib/shopify_cli/tasks/ensure_dev_store.rb
426
+ - lib/shopify_cli/tasks/ensure_env.rb
427
+ - lib/shopify_cli/tasks/ensure_loopback_url.rb
428
+ - lib/shopify_cli/tasks/ensure_project_type.rb
429
+ - lib/shopify_cli/tasks/select_org_and_shop.rb
430
+ - lib/shopify_cli/tasks/update_dashboard_urls.rb
431
+ - lib/shopify_cli/theme/dev_server.rb
432
+ - lib/shopify_cli/theme/dev_server/certificate_manager.rb
433
+ - lib/shopify_cli/theme/dev_server/header_hash.rb
434
+ - lib/shopify_cli/theme/dev_server/hot-reload.js
435
+ - lib/shopify_cli/theme/dev_server/hot_reload.rb
436
+ - lib/shopify_cli/theme/dev_server/local_assets.rb
437
+ - lib/shopify_cli/theme/dev_server/proxy.rb
438
+ - lib/shopify_cli/theme/dev_server/sse.rb
439
+ - lib/shopify_cli/theme/dev_server/watcher.rb
440
+ - lib/shopify_cli/theme/dev_server/web_server.rb
441
+ - lib/shopify_cli/theme/development_theme.rb
442
+ - lib/shopify_cli/theme/file.rb
443
+ - lib/shopify_cli/theme/ignore_filter.rb
444
+ - lib/shopify_cli/theme/mime_type.rb
445
+ - lib/shopify_cli/theme/syncer.rb
446
+ - lib/shopify_cli/theme/theme.rb
447
+ - lib/shopify_cli/transform_data_structure.rb
448
+ - lib/shopify_cli/tunnel.rb
449
+ - lib/shopify_cli/version.rb
394
450
  - shopify-cli.gemspec
395
451
  - shopify.fish
396
452
  - shopify.sh
453
+ - utilities/docker.rb
454
+ - utilities/utilities.rb
397
455
  - vendor/deps/cli-kit/REVISION
398
456
  - vendor/deps/cli-kit/lib/cli/kit.rb
399
457
  - vendor/deps/cli-kit/lib/cli/kit/autocall.rb
@@ -1,28 +0,0 @@
1
- name: CI
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- build:
7
- name: Ruby ${{ matrix.version }}
8
- runs-on: macos-latest
9
- strategy:
10
- matrix:
11
- version:
12
- - 3.0.0
13
- - 2.6.6
14
- - 2.7.1
15
- steps:
16
- - uses: actions/checkout@v2
17
-
18
- - name: Set up Ruby ${{ matrix.version }}
19
- uses: ruby/setup-ruby@v1
20
- with:
21
- ruby-version: ${{ matrix.version }}
22
- bundler-cache: true
23
-
24
- - name: Install Dependencies
25
- run: bundle install
26
-
27
- - name: Run Tests
28
- run: bundle exec rake