shopify-cli 2.11.2 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/Gemfile.lock +1 -1
- data/bin/shopify +8 -4
- data/docs/users/installation.md +1 -44
- data/lib/project_types/extension/models/specification_handlers/checkout_ui_extension.rb +114 -0
- data/lib/project_types/script/cli.rb +2 -0
- data/lib/project_types/script/commands/create.rb +2 -2
- data/lib/project_types/script/commands/push.rb +4 -6
- data/lib/project_types/script/config/extension_points.yml +0 -4
- data/lib/project_types/script/forms/create.rb +1 -14
- data/lib/project_types/script/layers/application/connect_app.rb +3 -2
- data/lib/project_types/script/layers/infrastructure/errors.rb +11 -0
- data/lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb +2 -6
- data/lib/project_types/script/layers/infrastructure/languages/assemblyscript_task_runner.rb +29 -18
- data/lib/project_types/script/layers/infrastructure/languages/tool_version_checker.rb +26 -0
- data/lib/project_types/script/layers/infrastructure/languages/typescript_project_creator.rb +3 -6
- data/lib/project_types/script/layers/infrastructure/languages/typescript_task_runner.rb +30 -19
- data/lib/project_types/script/loaders/project.rb +8 -7
- data/lib/project_types/script/messages/messages.rb +13 -12
- data/lib/project_types/script/ui/error_handler.rb +13 -0
- data/lib/project_types/theme/commands/common/root_helper.rb +65 -0
- data/lib/project_types/theme/commands/init.rb +2 -0
- data/lib/project_types/theme/commands/pull.rb +16 -8
- data/lib/project_types/theme/commands/push.rb +15 -7
- data/lib/project_types/theme/commands/serve.rb +6 -2
- data/lib/project_types/theme/conversions/base_glob.rb +50 -0
- data/lib/project_types/theme/conversions/ignore_glob.rb +15 -0
- data/lib/project_types/theme/conversions/include_glob.rb +15 -0
- data/lib/project_types/theme/messages/messages.rb +5 -5
- data/lib/shopify_cli/commands/app/create/node.rb +1 -0
- data/lib/shopify_cli/commands/app/create/php.rb +1 -0
- data/lib/shopify_cli/commands/app/create/rails.rb +1 -0
- data/lib/shopify_cli/commands/app/deploy.rb +1 -0
- data/lib/shopify_cli/environment.rb +6 -0
- data/lib/shopify_cli/git.rb +9 -1
- data/lib/shopify_cli/messages/messages.rb +21 -1
- data/lib/shopify_cli/tasks/ensure_git_dependency.rb +14 -0
- data/lib/shopify_cli/tasks.rb +1 -0
- data/lib/shopify_cli/theme/dev_server/proxy.rb +14 -2
- data/lib/shopify_cli/theme/include_filter.rb +4 -2
- data/lib/shopify_cli/theme/syncer.rb +13 -4
- data/lib/shopify_cli/version.rb +1 -1
- metadata +8 -2
@@ -42,7 +42,7 @@ module ShopifyCLI
|
|
42
42
|
# Latest theme assets checksums. Updated on each upload.
|
43
43
|
@checksums = {}
|
44
44
|
|
45
|
-
# Checksums of assets with errors.
|
45
|
+
# Checksums of assets with errors.
|
46
46
|
@error_checksums = []
|
47
47
|
end
|
48
48
|
|
@@ -168,7 +168,7 @@ module ShopifyCLI
|
|
168
168
|
# Delete local files not present remotely
|
169
169
|
missing_files = @theme.theme_files
|
170
170
|
.reject { |file| checksums.key?(file.relative_path.to_s) }.uniq
|
171
|
-
.reject { |file|
|
171
|
+
.reject { |file| ignore_file?(file) }
|
172
172
|
missing_files.each do |file|
|
173
173
|
@ctx.debug("rm #{file.relative_path}")
|
174
174
|
file.delete
|
@@ -195,7 +195,7 @@ module ShopifyCLI
|
|
195
195
|
# Already enqueued
|
196
196
|
return if @pending.include?(operation)
|
197
197
|
|
198
|
-
if
|
198
|
+
if ignore_operation?(operation)
|
199
199
|
@ctx.debug("ignore #{operation.file_path}")
|
200
200
|
return
|
201
201
|
end
|
@@ -253,8 +253,17 @@ module ShopifyCLI
|
|
253
253
|
response
|
254
254
|
end
|
255
255
|
|
256
|
-
def
|
256
|
+
def ignore_operation?(operation)
|
257
257
|
path = operation.file_path
|
258
|
+
ignore_path?(path)
|
259
|
+
end
|
260
|
+
|
261
|
+
def ignore_file?(file)
|
262
|
+
path = file.path
|
263
|
+
ignore_path?(path)
|
264
|
+
end
|
265
|
+
|
266
|
+
def ignore_path?(path)
|
258
267
|
ignored_by_ignore_filter?(path) || ignored_by_include_filter?(path)
|
259
268
|
end
|
260
269
|
|
data/lib/shopify_cli/version.rb
CHANGED
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.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -317,6 +317,7 @@ files:
|
|
317
317
|
- lib/project_types/script/layers/infrastructure/languages/assemblyscript_task_runner.rb
|
318
318
|
- lib/project_types/script/layers/infrastructure/languages/project_creator.rb
|
319
319
|
- lib/project_types/script/layers/infrastructure/languages/task_runner.rb
|
320
|
+
- lib/project_types/script/layers/infrastructure/languages/tool_version_checker.rb
|
320
321
|
- lib/project_types/script/layers/infrastructure/languages/typescript_project_creator.rb
|
321
322
|
- lib/project_types/script/layers/infrastructure/languages/typescript_task_runner.rb
|
322
323
|
- lib/project_types/script/layers/infrastructure/languages/wasm_project_creator.rb
|
@@ -335,6 +336,7 @@ files:
|
|
335
336
|
- lib/project_types/script/ui/strict_spinner.rb
|
336
337
|
- lib/project_types/theme/cli.rb
|
337
338
|
- lib/project_types/theme/commands/check.rb
|
339
|
+
- lib/project_types/theme/commands/common/root_helper.rb
|
338
340
|
- lib/project_types/theme/commands/delete.rb
|
339
341
|
- lib/project_types/theme/commands/init.rb
|
340
342
|
- lib/project_types/theme/commands/language_server.rb
|
@@ -343,6 +345,9 @@ files:
|
|
343
345
|
- lib/project_types/theme/commands/pull.rb
|
344
346
|
- lib/project_types/theme/commands/push.rb
|
345
347
|
- lib/project_types/theme/commands/serve.rb
|
348
|
+
- lib/project_types/theme/conversions/base_glob.rb
|
349
|
+
- lib/project_types/theme/conversions/ignore_glob.rb
|
350
|
+
- lib/project_types/theme/conversions/include_glob.rb
|
346
351
|
- lib/project_types/theme/forms/confirm_store.rb
|
347
352
|
- lib/project_types/theme/forms/select.rb
|
348
353
|
- lib/project_types/theme/messages/messages.rb
|
@@ -459,6 +464,7 @@ files:
|
|
459
464
|
- lib/shopify_cli/tasks/ensure_authenticated.rb
|
460
465
|
- lib/shopify_cli/tasks/ensure_dev_store.rb
|
461
466
|
- lib/shopify_cli/tasks/ensure_env.rb
|
467
|
+
- lib/shopify_cli/tasks/ensure_git_dependency.rb
|
462
468
|
- lib/shopify_cli/tasks/ensure_loopback_url.rb
|
463
469
|
- lib/shopify_cli/tasks/ensure_project_type.rb
|
464
470
|
- lib/shopify_cli/tasks/select_org_and_shop.rb
|