@shopify/cli 3.69.4 → 3.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/assets/cli-ruby/LICENSE → LICENSE} +0 -2
- package/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
- package/dist/chunk-3AOK7V27.js +3792 -0
- package/dist/{chunk-PNN7RS7Y.js → chunk-3NSN5Z4N.js} +100 -11
- package/dist/{chunk-EJGKAHVK.js → chunk-455HYBGX.js} +3 -3
- package/dist/{chunk-BMTELIUS.js → chunk-4G7SL7SU.js} +4 -4
- package/dist/{chunk-OWCYMR5Y.js → chunk-5F2WGMCL.js} +4 -4
- package/dist/{chunk-2NCWYVM4.js → chunk-5JZ5AGAQ.js} +652 -654
- package/dist/chunk-5OHM64KO.js +104 -0
- package/dist/{chunk-F54UWMGQ.js → chunk-675SL4FV.js} +3 -3
- package/dist/{chunk-WHP4CEBJ.js → chunk-AXNBVGJC.js} +20 -25
- package/dist/{chunk-KM4TMAQ2.js → chunk-BEVHUPQZ.js} +13 -9
- package/dist/{chunk-6XKWVDB6.js → chunk-CBBS4CV7.js} +3 -3
- package/dist/{chunk-YNL4XNMX.js → chunk-GJ7EWRH4.js} +4 -4
- package/dist/{chunk-N3U3EHOE.js → chunk-GV72NRZZ.js} +3 -3
- package/dist/{chunk-ZGHNMRBX.js → chunk-HSTSRNLJ.js} +121 -66
- package/dist/{chunk-ISDSND4L.js → chunk-IGH7XTG6.js} +2 -2
- package/dist/chunk-IJG6JLEF.js +28 -0
- package/dist/chunk-IJSEKDUR.js +28 -0
- package/dist/{chunk-VQ3R5DHS.js → chunk-JTWM7VKM.js} +4 -4
- package/dist/{chunk-VHEJRU4K.js → chunk-K6UZ5NEO.js} +7 -7
- package/dist/{chunk-JHVVETTP.js → chunk-KBDH6IDK.js} +19 -11
- package/dist/{chunk-7B5FNNVB.js → chunk-KJJGDUT2.js} +4 -4
- package/dist/{chunk-334DJQUN.js → chunk-KOHDI3KN.js} +7 -3
- package/dist/{chunk-MX4RJDBM.js → chunk-KYB6A4PE.js} +1 -2
- package/dist/{chunk-ORDEDRCZ.js → chunk-LMK5VFZE.js} +3 -3
- package/dist/{chunk-2JRUKBKX.js → chunk-LSQU4XJZ.js} +32 -218
- package/dist/{chunk-YPWRQ5AU.js → chunk-MG6EVKFQ.js} +3 -3
- package/dist/{chunk-K3GASX6Y.js → chunk-MHLSPYVQ.js} +3 -3
- package/dist/{chunk-27ILOE3X.js → chunk-OJOHMVV7.js} +6 -6
- package/dist/{chunk-7NPDPZ22.js → chunk-PDNTPE4N.js} +4355 -5172
- package/dist/{chunk-Y3MSANL5.js → chunk-RQJF2YRM.js} +2 -2
- package/dist/{chunk-S2IXL3EU.js → chunk-RXYE2GI3.js} +2 -2
- package/dist/chunk-SVWWKVUI.js +165 -0
- package/dist/{chunk-BRO6DC7D.js → chunk-T2BV6JEL.js} +18 -24
- package/dist/{chunk-6IATSQ3X.js → chunk-UDRKRTS4.js} +3 -3
- package/dist/{chunk-RYTZQSHH.js → chunk-VNZQKLLO.js} +2 -2
- package/dist/{chunk-UQUVQV3X.js → chunk-WLNYFGYY.js} +4 -4
- package/dist/{chunk-A3JXD7N7.js → chunk-WNDN5FAY.js} +4 -4
- package/dist/chunk-WZW6P6AO.js +105 -0
- package/dist/{chunk-TLZ4ZBH3.js → chunk-XOSZOZ3F.js} +7 -5
- package/dist/{chunk-TV5WOUSX.js → chunk-YNXUXQFM.js} +2 -2
- package/dist/{chunk-HV364V3E.js → chunk-YZA6BRN3.js} +2 -2
- package/dist/cli/commands/auth/logout.js +20 -20
- package/dist/cli/commands/auth/logout.test.js +22 -22
- package/dist/cli/commands/{demo/print-ai-prompt.d.ts → cache/clear.d.ts} +1 -1
- package/dist/cli/commands/cache/clear.js +33 -0
- package/dist/cli/commands/debug/command-flags.js +19 -19
- package/dist/cli/commands/docs/generate.js +19 -19
- package/dist/cli/commands/docs/generate.test.js +20 -20
- package/dist/cli/commands/help.js +19 -19
- package/dist/cli/commands/kitchen-sink/async.js +20 -20
- package/dist/cli/commands/kitchen-sink/async.test.js +21 -21
- package/dist/cli/commands/kitchen-sink/index.js +22 -22
- package/dist/cli/commands/kitchen-sink/index.test.js +25 -25
- package/dist/cli/commands/kitchen-sink/prompts.js +20 -20
- package/dist/cli/commands/kitchen-sink/prompts.test.js +21 -21
- package/dist/cli/commands/kitchen-sink/static.js +20 -20
- package/dist/cli/commands/kitchen-sink/static.test.js +21 -21
- package/dist/cli/commands/notifications/generate.d.ts +6 -0
- package/dist/cli/commands/notifications/generate.js +34 -0
- package/dist/cli/commands/{demo/catalog.d.ts → notifications/list.d.ts} +1 -1
- package/dist/cli/commands/notifications/list.js +34 -0
- package/dist/cli/commands/search.js +20 -20
- package/dist/cli/commands/upgrade.js +20 -20
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +20 -20
- package/dist/cli/commands/version.test.js +21 -21
- package/dist/cli/services/commands/notifications.d.ts +2 -0
- package/dist/cli/services/commands/notifications.js +29 -0
- package/dist/cli/services/commands/search.js +9 -10
- package/dist/cli/services/commands/search.test.js +10 -11
- package/dist/cli/services/commands/version.js +10 -11
- package/dist/cli/services/commands/version.test.js +12 -13
- package/dist/cli/services/kitchen-sink/async.js +9 -10
- package/dist/cli/services/kitchen-sink/prompts.js +9 -10
- package/dist/cli/services/kitchen-sink/static.js +9 -10
- package/dist/cli/services/upgrade.js +10 -11
- package/dist/cli/services/upgrade.test.js +15 -16
- package/dist/configs/all.yml +15 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-TBU3GENB.js → custom-oclif-loader-U43F5H7M.js} +13 -14
- package/dist/data/filters.json +137 -19
- package/dist/data/latest.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +203 -1625
- package/dist/data/preset_blocks.json +78 -0
- package/dist/data/section.json +1 -42
- package/dist/data/shopify_system_translations.json +58 -2
- package/dist/data/tags.json +10 -0
- package/dist/data/theme_block.json +1 -19
- package/dist/{del-7ZS2Z64N.js → del-K5ZJEWTD.js} +3 -3
- package/dist/{error-handler-IL72ACEX.js → error-handler-GSXEX5NX.js} +17 -18
- package/dist/hooks/postrun.js +14 -15
- package/dist/hooks/prerun.js +16 -19
- package/dist/index.js +34605 -31345
- package/dist/lib-PPXZBVZX.js +6 -0
- package/dist/{lib-JHUCJTHS.js → lib-XYCLX35G.js} +5 -5
- package/dist/{local-OE2I46PA.js → local-STC6NEOC.js} +11 -10
- package/dist/{morph-UIXWG2S7.js → morph-SEECJQ2W.js} +3 -3
- package/dist/{node-SDBKEHIV.js → node-I54BR73K.js} +21 -21
- package/dist/{node-package-manager-LPDV6HZY.js → node-package-manager-DUWCXRNZ.js} +10 -11
- package/dist/{out-ZDSLKX4N.js → out-MHEKZJWS.js} +2 -2
- package/dist/{path-T2RCZTRE.js → path-5SZGULBR.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-WB42ZV4M.js → ui-GZXRHEXO.js} +9 -10
- package/dist/{workerd-YWTPL4SF.js → workerd-WQ2CUXFS.js} +23 -23
- package/oclif.manifest.json +393 -223
- package/package.json +7 -8
- package/assets/demo-catalog.json +0 -655
- package/dist/assets/cli-ruby/.devcontainer.json +0 -5
- package/dist/assets/cli-ruby/.rubocop.yml +0 -102
- package/dist/assets/cli-ruby/.rubocop_todo.yml +0 -24
- package/dist/assets/cli-ruby/CHANGELOG.md +0 -634
- package/dist/assets/cli-ruby/CONTRIBUTING.md +0 -3
- package/dist/assets/cli-ruby/Codespace.dockerfile +0 -35
- package/dist/assets/cli-ruby/Gemfile +0 -32
- package/dist/assets/cli-ruby/README.md +0 -30
- package/dist/assets/cli-ruby/Rakefile +0 -167
- package/dist/assets/cli-ruby/SECURITY.md +0 -59
- package/dist/assets/cli-ruby/Tests.dockerfile +0 -35
- package/dist/assets/cli-ruby/assets/logo.png +0 -0
- package/dist/assets/cli-ruby/bin/console +0 -11
- package/dist/assets/cli-ruby/bin/load_shopify.rb +0 -22
- package/dist/assets/cli-ruby/bin/shopify +0 -67
- package/dist/assets/cli-ruby/bin/shopify.bat +0 -3
- package/dist/assets/cli-ruby/bin/update-deps +0 -97
- package/dist/assets/cli-ruby/dev.yml +0 -29
- package/dist/assets/cli-ruby/docs/README.md +0 -13
- package/dist/assets/cli-ruby/docs/contributors/testing.md +0 -27
- package/dist/assets/cli-ruby/docs/users/installation.md +0 -3
- package/dist/assets/cli-ruby/docs/users/migrate-from-themekit.md +0 -18
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/javy.rb +0 -204
- package/dist/assets/cli-ruby/ext/javy/version +0 -1
- package/dist/assets/cli-ruby/ext/shopify-extensions/extconf.rb +0 -21
- package/dist/assets/cli-ruby/ext/shopify-extensions/shopify_extensions.rb +0 -152
- package/dist/assets/cli-ruby/ext/shopify-extensions/version +0 -1
- package/dist/assets/cli-ruby/features/support/assertions.rb +0 -17
- package/dist/assets/cli-ruby/features/support/cli.rb +0 -7
- package/dist/assets/cli-ruby/features/support/process.rb +0 -27
- package/dist/assets/cli-ruby/features/support/requires.rb +0 -3
- package/dist/assets/cli-ruby/lib/docgen/class_template.md.erb +0 -81
- package/dist/assets/cli-ruby/lib/docgen/index_template.md.erb +0 -5
- package/dist/assets/cli-ruby/lib/docgen/markdown.rb +0 -101
- package/dist/assets/cli-ruby/lib/graphql/admin_introspection.graphql +0 -87
- package/dist/assets/cli-ruby/lib/graphql/all_organizations.graphql +0 -19
- package/dist/assets/cli-ruby/lib/graphql/all_orgs_with_apps.graphql +0 -30
- package/dist/assets/cli-ruby/lib/graphql/api_versions.graphql +0 -6
- package/dist/assets/cli-ruby/lib/graphql/convert_dev_to_test_store.graphql +0 -10
- package/dist/assets/cli-ruby/lib/graphql/create_app.graphql +0 -20
- package/dist/assets/cli-ruby/lib/graphql/create_customer.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/create_draft_order.graphql +0 -8
- package/dist/assets/cli-ruby/lib/graphql/create_product.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/extension_create.graphql +0 -37
- package/dist/assets/cli-ruby/lib/graphql/extension_update_draft.graphql +0 -19
- package/dist/assets/cli-ruby/lib/graphql/fetch_specifications.graphql +0 -14
- package/dist/assets/cli-ruby/lib/graphql/find_organization.graphql +0 -18
- package/dist/assets/cli-ruby/lib/graphql/find_organization_with_apps.graphql +0 -20
- package/dist/assets/cli-ruby/lib/graphql/get_app_by_api_key.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/get_app_urls.graphql +0 -6
- package/dist/assets/cli-ruby/lib/graphql/get_extension_registrations.graphql +0 -28
- package/dist/assets/cli-ruby/lib/graphql/get_variant_id.graphql +0 -16
- package/dist/assets/cli-ruby/lib/graphql/update_dashboard_urls.graphql +0 -8
- package/dist/assets/cli-ruby/lib/project_types/extension/cli.rb +0 -75
- package/dist/assets/cli-ruby/lib/project_types/extension/commands/extension_command.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/commands/serve.rb +0 -164
- package/dist/assets/cli-ruby/lib/project_types/extension/errors.rb +0 -9
- package/dist/assets/cli-ruby/lib/project_types/extension/extension_project.rb +0 -151
- package/dist/assets/cli-ruby/lib/project_types/extension/extension_project_keys.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo.rb +0 -50
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_config.rb +0 -59
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_dependencies.rb +0 -28
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_runtime.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_serve.rb +0 -115
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup.rb +0 -54
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup_step.rb +0 -31
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup_steps.rb +0 -51
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/admin.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/base.rb +0 -19
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/checkout_post_purchase.rb +0 -23
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/checkout_ui_extension.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/loaders/project.rb +0 -50
- package/dist/assets/cli-ruby/lib/project_types/extension/loaders/specification_handler.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/extension/messages/message_loading.rb +0 -34
- package/dist/assets/cli-ruby/lib/project_types/extension/messages/messages.rb +0 -320
- package/dist/assets/cli-ruby/lib/project_types/extension/models/app.rb +0 -14
- package/dist/assets/cli-ruby/lib/project_types/extension/models/lazy_specification_handler.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification.rb +0 -41
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/default.rb +0 -145
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +0 -134
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specifications.rb +0 -91
- package/dist/assets/cli-ruby/lib/project_types/extension/models/validation_error.rb +0 -17
- package/dist/assets/cli-ruby/lib/project_types/extension/models/version.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/configure_features.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/configure_options.rb +0 -21
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/converters/validation_error_converter.rb +0 -25
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/converters/version_converter.rb +0 -28
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/fetch_specifications.rb +0 -21
- package/dist/assets/cli-ruby/lib/project_types/node/cli.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/node/forms/create.rb +0 -45
- package/dist/assets/cli-ruby/lib/project_types/node/messages/messages.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/php/cli.rb +0 -16
- package/dist/assets/cli-ruby/lib/project_types/php/forms/create.rb +0 -44
- package/dist/assets/cli-ruby/lib/project_types/php/messages/messages.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/rails/cli.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/rails/forms/create.rb +0 -75
- package/dist/assets/cli-ruby/lib/project_types/rails/gem.rb +0 -110
- package/dist/assets/cli-ruby/lib/project_types/rails/messages/messages.rb +0 -101
- package/dist/assets/cli-ruby/lib/project_types/script/cli.rb +0 -27
- package/dist/assets/cli-ruby/lib/project_types/script/commands/connect.rb +0 -16
- package/dist/assets/cli-ruby/lib/project_types/script/commands/create.rb +0 -24
- package/dist/assets/cli-ruby/lib/project_types/script/commands/javy.rb +0 -24
- package/dist/assets/cli-ruby/lib/project_types/script/commands/push.rb +0 -26
- package/dist/assets/cli-ruby/lib/project_types/script/loaders/project.rb +0 -46
- package/dist/assets/cli-ruby/lib/project_types/script/loaders/specification_handler.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/script/messages/messages.rb +0 -11
- package/dist/assets/cli-ruby/lib/project_types/theme/cli.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/common/root_helper.rb +0 -94
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/common/shop_helper.rb +0 -13
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/console.rb +0 -23
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/delete.rb +0 -70
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/init.rb +0 -46
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/list.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/open.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/package.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/publish.rb +0 -49
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/pull.rb +0 -118
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/push.rb +0 -160
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/serve.rb +0 -91
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/share.rb +0 -62
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/token.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/base_glob.rb +0 -65
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/ignore_glob.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/include_glob.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/forms/confirm_store.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/forms/select.rb +0 -34
- package/dist/assets/cli-ruby/lib/project_types/theme/messages/messages.rb +0 -429
- package/dist/assets/cli-ruby/lib/project_types/theme/models/specification_handlers/theme.rb +0 -19
- package/dist/assets/cli-ruby/lib/project_types/theme/presenters/theme_presenter.rb +0 -48
- package/dist/assets/cli-ruby/lib/project_types/theme/presenters/themes_presenter.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/theme/ui/sync_progress_bar.rb +0 -20
- package/dist/assets/cli-ruby/lib/rubygems_plugin.rb +0 -26
- package/dist/assets/cli-ruby/lib/shopify_cli/admin_api.rb +0 -160
- package/dist/assets/cli-ruby/lib/shopify_cli/api.rb +0 -130
- package/dist/assets/cli-ruby/lib/shopify_cli/command/project_command.rb +0 -31
- package/dist/assets/cli-ruby/lib/shopify_cli/command/sub_command.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/command.rb +0 -166
- package/dist/assets/cli-ruby/lib/shopify_cli/commands.rb +0 -21
- package/dist/assets/cli-ruby/lib/shopify_cli/constants.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/context.rb +0 -709
- package/dist/assets/cli-ruby/lib/shopify_cli/core/cli_version.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/core/entry_point.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/core/executor.rb +0 -23
- package/dist/assets/cli-ruby/lib/shopify_cli/core/finalize.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/core/monorail.rb +0 -122
- package/dist/assets/cli-ruby/lib/shopify_cli/core.rb +0 -8
- package/dist/assets/cli-ruby/lib/shopify_cli/db.rb +0 -114
- package/dist/assets/cli-ruby/lib/shopify_cli/environment.rb +0 -217
- package/dist/assets/cli-ruby/lib/shopify_cli/exception_reporter.rb +0 -80
- package/dist/assets/cli-ruby/lib/shopify_cli/feature.rb +0 -95
- package/dist/assets/cli-ruby/lib/shopify_cli/file_system_listener.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/form.rb +0 -42
- package/dist/assets/cli-ruby/lib/shopify_cli/git.rb +0 -320
- package/dist/assets/cli-ruby/lib/shopify_cli/github/issue_url_generator.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/github.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/helpers/haikunator.rb +0 -92
- package/dist/assets/cli-ruby/lib/shopify_cli/helpers.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/http_request.rb +0 -43
- package/dist/assets/cli-ruby/lib/shopify_cli/identity_auth/env_auth_token.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/identity_auth.rb +0 -332
- package/dist/assets/cli-ruby/lib/shopify_cli/js_system.rb +0 -115
- package/dist/assets/cli-ruby/lib/shopify_cli/lazy_delegator.rb +0 -55
- package/dist/assets/cli-ruby/lib/shopify_cli/messages/messages.rb +0 -863
- package/dist/assets/cli-ruby/lib/shopify_cli/method_object.rb +0 -123
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migration.rb +0 -27
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migrations/1631709766_noop.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migrations/1633691650_merge_reporting_configuration.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator.rb +0 -46
- package/dist/assets/cli-ruby/lib/shopify_cli/options.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/app_extensions/job.rb +0 -36
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/app_extensions.rb +0 -46
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/organizations.rb +0 -45
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api.rb +0 -91
- package/dist/assets/cli-ruby/lib/shopify_cli/project.rb +0 -199
- package/dist/assets/cli-ruby/lib/shopify_cli/project_type.rb +0 -66
- package/dist/assets/cli-ruby/lib/shopify_cli/reporting_configuration_controller.rb +0 -29
- package/dist/assets/cli-ruby/lib/shopify_cli/resolve_constant.rb +0 -25
- package/dist/assets/cli-ruby/lib/shopify_cli/resources/env_file.rb +0 -108
- package/dist/assets/cli-ruby/lib/shopify_cli/resources.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/result.rb +0 -448
- package/dist/assets/cli-ruby/lib/shopify_cli/shopifolk.rb +0 -82
- package/dist/assets/cli-ruby/lib/shopify_cli/task.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/confirm_store.rb +0 -18
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/create_api_client.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_authenticated.rb +0 -19
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_dev_store.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_env.rb +0 -90
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_git_dependency.rb +0 -14
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_loopback_url.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_project_type.rb +0 -14
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/select_org_and_shop.rb +0 -81
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/update_dashboard_urls.rb +0 -57
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks.rb +0 -44
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/backoff_helper.rb +0 -47
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/cdn_fonts.rb +0 -82
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/certificate_manager.rb +0 -79
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/errors.rb +0 -9
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/header_hash.rb +0 -98
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hooks/file_change_hook.rb +0 -77
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/remote_file_deleter.rb +0 -62
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/remote_file_reloader.rb +0 -63
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/hot-reload-no-script.html +0 -27
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/hot_reload.js +0 -48
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/sse_client.js +0 -43
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/theme.js +0 -114
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/theme_extension.js +0 -121
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/script_injector.rb +0 -57
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/sections_index.rb +0 -50
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload.rb +0 -75
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/local_assets.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +0 -313
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy_param_builder.rb +0 -84
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/reload_mode.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/remote_watcher.rb +0 -44
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/sse.rb +0 -75
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/watcher.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/web_server.rb +0 -140
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server.rb +0 -332
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/development_theme.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/app_extension.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hooks/file_change_hook.rb +0 -76
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hot_reload/script_injector.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hot_reload.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/local_assets.rb +0 -31
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/proxy_param_builder.rb +0 -94
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/watcher.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server.rb +0 -175
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/host_theme.rb +0 -109
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ignore_helper.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/extension_serve_job.rb +0 -120
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/operation.rb +0 -25
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer.rb +0 -100
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_progress_bar.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_raw_progress_bar.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/file.rb +0 -133
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/filter/path_matcher.rb +0 -38
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/ignore_filter.rb +0 -112
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/ignore_helper.rb +0 -37
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/include_filter.rb +0 -67
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/mime_type.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/notifier.rb +0 -52
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/api.rb +0 -109
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_dev_server.rb +0 -93
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb +0 -97
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/remote_evaluator.rb +0 -166
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/resources/success.html +0 -78
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/resources/template.liquid +0 -15
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/snippet.rb +0 -81
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb +0 -88
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/root.rb +0 -62
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/checksums.rb +0 -66
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/downloader.rb +0 -63
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/error_reporter.rb +0 -45
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/merger.rb +0 -53
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/operation.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/standard_reporter.rb +0 -32
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/unsupported_script_warning.rb +0 -90
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk.rb +0 -133
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_item.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_job.rb +0 -139
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_request.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/apply_to_all.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/apply_to_all_form.rb +0 -37
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/base_strategy_form.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/select_delete_strategy.rb +0 -29
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/select_update_strategy.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/json_delete_handler.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/json_update_handler.rb +0 -71
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader.rb +0 -231
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb +0 -391
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme.rb +0 -212
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme_access_api.rb +0 -89
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/thread_pool/job.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/thread_pool.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/transform_data_structure.rb +0 -87
- package/dist/assets/cli-ruby/lib/shopify_cli/utilities.rb +0 -21
- package/dist/assets/cli-ruby/lib/shopify_cli/version.rb +0 -3
- package/dist/assets/cli-ruby/lib/shopify_cli.rb +0 -182
- package/dist/assets/cli-ruby/shipit.rubygems.yml +0 -3
- package/dist/assets/cli-ruby/shopify-cli.gemspec +0 -46
- package/dist/assets/cli-ruby/shopify-dev +0 -16
- package/dist/assets/cli-ruby/test/minitest_ext.rb +0 -115
- package/dist/assets/cli-ruby/test/project_types/extension/extension_test_helpers.rb +0 -70
- package/dist/assets/cli-ruby/test/shopify-cli/migrator/migrations/migration_helper.rb +0 -20
- package/dist/assets/cli-ruby/test/test_helpers.rb +0 -16
- package/dist/assets/cli-ruby/utilities/constants.rb +0 -7
- package/dist/assets/cli-ruby/utilities/docker/container.rb +0 -104
- package/dist/assets/cli-ruby/utilities/docker.rb +0 -89
- package/dist/assets/cli-ruby/utilities/utilities.rb +0 -6
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/autocall.rb +0 -21
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/base_command.rb +0 -49
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/command_registry.rb +0 -94
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/config.rb +0 -133
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb +0 -123
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb +0 -79
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/ini.rb +0 -102
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/levenshtein.rb +0 -82
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/logger.rb +0 -82
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/resolver.rb +0 -60
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/ruby_backports/enumerable.rb +0 -6
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/support/test_helper.rb +0 -244
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/support.rb +0 -9
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/system.rb +0 -243
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb +0 -193
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/version.rb +0 -5
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit.rb +0 -60
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/ansi.rb +0 -157
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/color.rb +0 -84
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/formatter.rb +0 -193
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_stack.rb +0 -98
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style/box.rb +0 -166
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style/bracket.rb +0 -139
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style.rb +0 -120
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame.rb +0 -269
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/glyph.rb +0 -84
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/os.rb +0 -73
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/printer.rb +0 -59
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress.rb +0 -90
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress_plain.rb +0 -50
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt/interactive_options.rb +0 -484
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt/options_handler.rb +0 -29
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt.rb +0 -282
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner/async.rb +0 -40
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner/spin_group.rb +0 -263
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner.rb +0 -66
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb +0 -232
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/terminal.rb +0 -46
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/truncater.rb +0 -102
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/version.rb +0 -5
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets/base.rb +0 -27
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets/status.rb +0 -61
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets.rb +0 -77
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/wrap.rb +0 -56
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui.rb +0 -234
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/LICENSE +0 -22
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/README.md +0 -67
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/Rakefile +0 -54
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb +0 -57
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/ruby2_keywords.gemspec +0 -18
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/test/test_keyword.rb +0 -41
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/errors.rb +0 -114
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/property.rb +0 -168
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/property_collection.rb +0 -83
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/validations/ancestor.rb +0 -27
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/validations.rb +0 -8
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/version.rb +0 -3
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties.rb +0 -174
- package/dist/assets/cli-ruby/vendor/deps/webrick/Gemfile +0 -3
- package/dist/assets/cli-ruby/vendor/deps/webrick/LICENSE.txt +0 -22
- package/dist/assets/cli-ruby/vendor/deps/webrick/README.md +0 -61
- package/dist/assets/cli-ruby/vendor/deps/webrick/Rakefile +0 -10
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/accesslog.rb +0 -157
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/cgi.rb +0 -313
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/compat.rb +0 -36
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/config.rb +0 -158
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/cookie.rb +0 -172
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/htmlutils.rb +0 -30
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/authenticator.rb +0 -117
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/basicauth.rb +0 -116
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/digestauth.rb +0 -395
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htdigest.rb +0 -132
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htgroup.rb +0 -97
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htpasswd.rb +0 -158
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/userdb.rb +0 -53
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth.rb +0 -96
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpproxy.rb +0 -354
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httprequest.rb +0 -636
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpresponse.rb +0 -564
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/https.rb +0 -152
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpserver.rb +0 -294
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/abstract.rb +0 -152
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/cgi_runner.rb +0 -47
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/cgihandler.rb +0 -126
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/erbhandler.rb +0 -88
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/filehandler.rb +0 -552
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/prochandler.rb +0 -47
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet.rb +0 -23
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpstatus.rb +0 -194
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httputils.rb +0 -512
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpversion.rb +0 -76
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/log.rb +0 -156
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/server.rb +0 -381
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/ssl.rb +0 -215
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/utils.rb +0 -265
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/version.rb +0 -18
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick.rb +0 -232
- package/dist/assets/cli-ruby/vendor/deps/webrick/webrick.gemspec +0 -74
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands/help.rb +0 -20
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands/new.rb +0 -21
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands.rb +0 -18
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/entry_point.rb +0 -10
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/generator.rb +0 -165
- package/dist/assets/cli-ruby/vendor/gen/lib/gen.rb +0 -39
- package/dist/assets/cli-ruby/vendor/gen/template/Gemfile +0 -10
- package/dist/assets/cli-ruby/vendor/gen/template/README.md +0 -1
- package/dist/assets/cli-ruby/vendor/gen/template/bin/testunit +0 -23
- package/dist/assets/cli-ruby/vendor/gen/template/bin/update-deps +0 -97
- package/dist/assets/cli-ruby/vendor/gen/template/dev-gems.yml +0 -3
- package/dist/assets/cli-ruby/vendor/gen/template/dev-vendor.yml +0 -4
- package/dist/assets/cli-ruby/vendor/gen/template/exe/__app__-gems +0 -17
- package/dist/assets/cli-ruby/vendor/gen/template/exe/__app__-vendor +0 -18
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands/example.rb +0 -19
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands/help.rb +0 -21
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands.rb +0 -18
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/entry_point.rb +0 -10
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__.rb +0 -33
- package/dist/assets/cli-ruby/vendor/gen/template/test/example_test.rb +0 -17
- package/dist/assets/cli-ruby/vendor/gen/template/test/test_helper.rb +0 -22
- package/dist/assets/cli-ruby/vendor/lib/semantic/LICENSE +0 -20
- package/dist/assets/cli-ruby/vendor/lib/semantic/semantic.rb +0 -4
- package/dist/assets/cli-ruby/vendor/lib/semantic/version.rb +0 -179
- package/dist/assets/demo-catalog.json +0 -655
- package/dist/chunk-CPEFXM7T.js +0 -45
- package/dist/chunk-FVUAIT37.js +0 -312
- package/dist/chunk-FWX3KCDM.js +0 -116
- package/dist/chunk-FX2HB3CJ.js +0 -58
- package/dist/chunk-GYP4MV72.js +0 -59
- package/dist/chunk-NLUGD7PZ.js +0 -2731
- package/dist/chunk-P7JUHQKL.js +0 -115
- package/dist/chunk-QSUS3GJF.js +0 -3838
- package/dist/chunk-T2GATXSP.js +0 -112
- package/dist/cli/commands/demo/catalog.js +0 -34
- package/dist/cli/commands/demo/generate-file.d.ts +0 -11
- package/dist/cli/commands/demo/generate-file.js +0 -35
- package/dist/cli/commands/demo/index.d.ts +0 -10
- package/dist/cli/commands/demo/index.js +0 -34
- package/dist/cli/commands/demo/print-ai-prompt.js +0 -35
- package/dist/cli/services/demo.d.ts +0 -26440
- package/dist/cli/services/demo.js +0 -25
- package/dist/cli/services/demo.test.js +0 -42
- package/dist/constants-T7JXE5K7.js +0 -24
- package/dist/system-SGABHAU2.js +0 -29
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "shopify_cli/theme/theme"
|
|
3
|
-
require "shopify_cli/theme/development_theme"
|
|
4
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
5
|
-
|
|
6
|
-
module Theme
|
|
7
|
-
class Command
|
|
8
|
-
class Delete < ShopifyCLI::Command::SubCommand
|
|
9
|
-
include Common::ShopHelper
|
|
10
|
-
|
|
11
|
-
recommend_default_ruby_range
|
|
12
|
-
|
|
13
|
-
options do |parser, flags|
|
|
14
|
-
parser.on("-d", "--development") { flags[:development] = true }
|
|
15
|
-
parser.on("-a", "--show-all") { flags[:show_all] = true }
|
|
16
|
-
parser.on("-f", "--force") { flags[:force] = true }
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def call(args, _name)
|
|
20
|
-
themes = if options.flags[:development]
|
|
21
|
-
[ShopifyCLI::Theme::DevelopmentTheme.new(@ctx)]
|
|
22
|
-
elsif args.any?
|
|
23
|
-
args.map { |id| ShopifyCLI::Theme::Theme.new(@ctx, id: id) }
|
|
24
|
-
else
|
|
25
|
-
form = Forms::Select.ask(
|
|
26
|
-
@ctx,
|
|
27
|
-
[],
|
|
28
|
-
title: @ctx.message("theme.delete.select", shop),
|
|
29
|
-
exclude_roles: ["live"],
|
|
30
|
-
include_foreign_developments: options.flags[:show_all],
|
|
31
|
-
cmd: :delete
|
|
32
|
-
)
|
|
33
|
-
return unless form
|
|
34
|
-
[form.theme]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
deleted = 0
|
|
38
|
-
themes.each do |theme|
|
|
39
|
-
if theme.live?
|
|
40
|
-
@ctx.puts(@ctx.message("theme.delete.live", theme.id))
|
|
41
|
-
next
|
|
42
|
-
elsif !confirm?(theme)
|
|
43
|
-
next
|
|
44
|
-
end
|
|
45
|
-
theme.delete
|
|
46
|
-
deleted += 1
|
|
47
|
-
rescue ShopifyCLI::API::APIRequestNotFoundError
|
|
48
|
-
@ctx.puts(@ctx.message("theme.delete.not_found", theme.id))
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
@ctx.done(@ctx.message("theme.delete.done", deleted))
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
def self.help
|
|
55
|
-
ShopifyCLI::Context.message("theme.delete.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
private
|
|
59
|
-
|
|
60
|
-
def confirm?(theme)
|
|
61
|
-
Forms::ConfirmStore.ask(
|
|
62
|
-
@ctx,
|
|
63
|
-
[],
|
|
64
|
-
title: @ctx.message("theme.delete.confirm", theme.name, theme.shop),
|
|
65
|
-
force: options.flags[:force],
|
|
66
|
-
).confirmed?
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Theme
|
|
4
|
-
class Command
|
|
5
|
-
class Init < ShopifyCLI::Command::SubCommand
|
|
6
|
-
recommend_default_ruby_range
|
|
7
|
-
|
|
8
|
-
options do |parser, flags|
|
|
9
|
-
parser.on("-u", "--clone-url URL") { |url| flags[:clone_url] = url }
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
prerequisite_task :ensure_git_dependency
|
|
13
|
-
|
|
14
|
-
DEFAULT_CLONE_URL = "https://github.com/Shopify/dawn.git"
|
|
15
|
-
|
|
16
|
-
def call(args, _name)
|
|
17
|
-
name = args.first || ask_name
|
|
18
|
-
clone_url = options.flags[:clone_url] || DEFAULT_CLONE_URL
|
|
19
|
-
clone(clone_url, name)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.help
|
|
23
|
-
ShopifyCLI::Context.message("theme.init.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
def ask_name
|
|
29
|
-
CLI::UI::Prompt.ask(@ctx.message("theme.init.ask_name"))
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def clone(url, name)
|
|
33
|
-
ShopifyCLI::Git.clone(url, name)
|
|
34
|
-
|
|
35
|
-
@ctx.root = File.join(@ctx.root, name)
|
|
36
|
-
|
|
37
|
-
begin
|
|
38
|
-
@ctx.rm_r(".git")
|
|
39
|
-
@ctx.rm_r(".github")
|
|
40
|
-
rescue Errno::ENOENT => e
|
|
41
|
-
@ctx.debug(e)
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "shopify_cli/theme/theme"
|
|
4
|
-
require "project_types/theme/presenters/themes_presenter"
|
|
5
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
6
|
-
|
|
7
|
-
module Theme
|
|
8
|
-
class Command
|
|
9
|
-
class List < ShopifyCLI::Command::SubCommand
|
|
10
|
-
include Common::ShopHelper
|
|
11
|
-
|
|
12
|
-
recommend_default_ruby_range
|
|
13
|
-
|
|
14
|
-
def call(_args, _name)
|
|
15
|
-
@ctx.puts(@ctx.message("theme.list.title", shop))
|
|
16
|
-
|
|
17
|
-
themes_presenter.all.each do |theme|
|
|
18
|
-
@ctx.puts(" #{theme}")
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.help
|
|
23
|
-
@ctx.message("theme.list.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
def themes_presenter
|
|
29
|
-
Theme::Presenters::ThemesPresenter.new(@ctx, nil)
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "shopify_cli/theme/theme"
|
|
4
|
-
require "shopify_cli/theme/development_theme"
|
|
5
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
6
|
-
|
|
7
|
-
module Theme
|
|
8
|
-
class Command
|
|
9
|
-
class Open < ShopifyCLI::Command::SubCommand
|
|
10
|
-
include Common::ShopHelper
|
|
11
|
-
|
|
12
|
-
recommend_default_ruby_range
|
|
13
|
-
|
|
14
|
-
options do |parser, flags|
|
|
15
|
-
parser.on("-t", "--theme=NAME_OR_ID") { |theme| flags[:theme] = theme }
|
|
16
|
-
parser.on("-l", "--live") { flags[:live] = true }
|
|
17
|
-
parser.on("-d", "--development") { flags[:development] = true }
|
|
18
|
-
parser.on("-e", "--editor") { flags[:editor] = true }
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def call(_args, _name)
|
|
22
|
-
theme = find_theme(**options.flags)
|
|
23
|
-
|
|
24
|
-
@ctx.puts(@ctx.message("theme.open.details", theme.name, theme.preview_url, theme.editor_url))
|
|
25
|
-
if options.flags[:editor]
|
|
26
|
-
@ctx.open_browser_url!(theme.editor_url)
|
|
27
|
-
else
|
|
28
|
-
@ctx.open_browser_url!(theme.preview_url)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def self.help
|
|
33
|
-
ShopifyCLI::Context.message("theme.open.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
def find_theme(theme: nil, live: nil, development: nil, **_args)
|
|
37
|
-
return theme_by_identifier(theme) if theme
|
|
38
|
-
return live_theme if live
|
|
39
|
-
return development_theme if development
|
|
40
|
-
|
|
41
|
-
select_theme
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def theme_by_identifier(identifier)
|
|
45
|
-
theme = ShopifyCLI::Theme::Theme.find_by_identifier(@ctx, identifier: identifier)
|
|
46
|
-
theme || not_found_error(identifier)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def development_theme
|
|
50
|
-
theme = ShopifyCLI::Theme::DevelopmentTheme.find(@ctx)
|
|
51
|
-
theme || not_found_error("development")
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
def live_theme
|
|
55
|
-
ShopifyCLI::Theme::Theme.live(@ctx)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def not_found_error(identifier)
|
|
59
|
-
@ctx.abort(@ctx.message("theme.open.theme_not_found", identifier))
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def select_theme
|
|
63
|
-
form = Forms::Select.ask(
|
|
64
|
-
@ctx,
|
|
65
|
-
[],
|
|
66
|
-
title: @ctx.message("theme.open.select", shop),
|
|
67
|
-
root: nil
|
|
68
|
-
)
|
|
69
|
-
form&.theme
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "pathname"
|
|
3
|
-
require "json"
|
|
4
|
-
|
|
5
|
-
module Theme
|
|
6
|
-
class Command
|
|
7
|
-
class Package < ShopifyCLI::Command::SubCommand
|
|
8
|
-
recommend_default_ruby_range
|
|
9
|
-
|
|
10
|
-
THEME_DIRECTORIES = %w[
|
|
11
|
-
assets
|
|
12
|
-
config
|
|
13
|
-
layout
|
|
14
|
-
locales
|
|
15
|
-
sections
|
|
16
|
-
snippets
|
|
17
|
-
templates
|
|
18
|
-
release-notes.md
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
ZIP = "zip"
|
|
22
|
-
SEVEN_ZIP = "7z"
|
|
23
|
-
|
|
24
|
-
def call(args, _name)
|
|
25
|
-
path = args.first || "."
|
|
26
|
-
|
|
27
|
-
check_prereq_command
|
|
28
|
-
zip_name = theme_name(path) + ".zip"
|
|
29
|
-
|
|
30
|
-
zip(zip_name, path, THEME_DIRECTORIES)
|
|
31
|
-
@ctx.done(@ctx.message("theme.package.done", zip_name))
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
def self.help
|
|
35
|
-
ShopifyCLI::Context.message("theme.package.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
private
|
|
39
|
-
|
|
40
|
-
def check_prereq_command
|
|
41
|
-
@ctx.abort(@ctx.message("theme.package.error.prereq_command_required")) if command.nil?
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def zip(zip_name, path, files)
|
|
45
|
-
@ctx.system(command, command_flags, zip_name, *files, chdir: path)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
def theme_name(path)
|
|
49
|
-
settings_schema = Pathname.new(path).join("config/settings_schema.json")
|
|
50
|
-
@ctx.abort(@ctx.message("theme.package.error.missing_config")) unless settings_schema.file?
|
|
51
|
-
|
|
52
|
-
content = settings_schema.read
|
|
53
|
-
theme_info = JSON.parse(content).find { |section| section["name"] == "theme_info" }
|
|
54
|
-
theme_name = theme_info&.dig("theme_name")
|
|
55
|
-
@ctx.abort(@ctx.message("theme.package.error.missing_theme_name")) unless theme_name
|
|
56
|
-
|
|
57
|
-
[theme_name, theme_info["theme_version"]].compact.join("-")
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def command
|
|
61
|
-
@command ||= if @ctx.which(ZIP)
|
|
62
|
-
ZIP
|
|
63
|
-
elsif @ctx.which(SEVEN_ZIP)
|
|
64
|
-
SEVEN_ZIP
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def command_flags
|
|
69
|
-
@command_flags ||= command == ZIP ? "-r" : "a"
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "shopify_cli/theme/theme"
|
|
3
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
4
|
-
|
|
5
|
-
module Theme
|
|
6
|
-
class Command
|
|
7
|
-
class Publish < ShopifyCLI::Command::SubCommand
|
|
8
|
-
include Common::ShopHelper
|
|
9
|
-
|
|
10
|
-
recommend_default_ruby_range
|
|
11
|
-
|
|
12
|
-
options do |parser, flags|
|
|
13
|
-
parser.on("-f", "--force") { flags[:force] = true }
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def call(args, *)
|
|
17
|
-
theme = if (theme_id = args.first)
|
|
18
|
-
ShopifyCLI::Theme::Theme.new(@ctx, id: theme_id)
|
|
19
|
-
else
|
|
20
|
-
form = Forms::Select.ask(
|
|
21
|
-
@ctx,
|
|
22
|
-
[],
|
|
23
|
-
title: @ctx.message("theme.publish.select", shop),
|
|
24
|
-
exclude_roles: ["live", "development", "demo"],
|
|
25
|
-
cmd: :publish
|
|
26
|
-
)
|
|
27
|
-
return unless form
|
|
28
|
-
form.theme
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
return unless Forms::ConfirmStore.ask(
|
|
32
|
-
@ctx,
|
|
33
|
-
[],
|
|
34
|
-
title: @ctx.message("theme.publish.confirm", theme.name, theme.shop),
|
|
35
|
-
force: options.flags[:force],
|
|
36
|
-
).confirmed?
|
|
37
|
-
|
|
38
|
-
theme.publish
|
|
39
|
-
@ctx.done(@ctx.message("theme.publish.done", theme.preview_url))
|
|
40
|
-
rescue ShopifyCLI::API::APIRequestNotFoundError
|
|
41
|
-
@ctx.puts(@ctx.message("theme.publish.not_found", theme.id))
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def self.help
|
|
45
|
-
ShopifyCLI::Context.message("theme.publish.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "shopify_cli/theme/theme"
|
|
3
|
-
require "shopify_cli/theme/development_theme"
|
|
4
|
-
require "shopify_cli/theme/ignore_filter"
|
|
5
|
-
require "shopify_cli/theme/include_filter"
|
|
6
|
-
require "shopify_cli/theme/syncer"
|
|
7
|
-
require "project_types/theme/commands/common/root_helper"
|
|
8
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
9
|
-
require "project_types/theme/conversions/include_glob"
|
|
10
|
-
require "project_types/theme/conversions/ignore_glob"
|
|
11
|
-
|
|
12
|
-
module Theme
|
|
13
|
-
class Command
|
|
14
|
-
class Pull < ShopifyCLI::Command::SubCommand
|
|
15
|
-
include Common::ShopHelper
|
|
16
|
-
include Common::RootHelper
|
|
17
|
-
|
|
18
|
-
recommend_default_ruby_range
|
|
19
|
-
|
|
20
|
-
options do |parser, flags|
|
|
21
|
-
Conversions::IncludeGlob.register(parser)
|
|
22
|
-
Conversions::IgnoreGlob.register(parser)
|
|
23
|
-
|
|
24
|
-
parser.on("-n", "--nodelete") { flags[:nodelete] = true }
|
|
25
|
-
parser.on("-i", "--themeid=ID") { |theme_id| flags[:theme_id] = theme_id }
|
|
26
|
-
parser.on("-t", "--theme=NAME_OR_ID") { |theme| flags[:theme] = theme }
|
|
27
|
-
parser.on("-l", "--live") { flags[:live] = true }
|
|
28
|
-
parser.on("-d", "--development") { flags[:development] = true }
|
|
29
|
-
parser.on("-o", "--only=PATTERN", Conversions::IncludeGlob) do |pattern|
|
|
30
|
-
flags[:includes] ||= []
|
|
31
|
-
flags[:includes] |= pattern
|
|
32
|
-
end
|
|
33
|
-
parser.on("-x", "--ignore=PATTERN", Conversions::IgnoreGlob) do |pattern|
|
|
34
|
-
flags[:ignores] ||= []
|
|
35
|
-
flags[:ignores] |= pattern
|
|
36
|
-
end
|
|
37
|
-
parser.on("-f", "--force") { flags[:force] = true }
|
|
38
|
-
parser.on("--development-theme-id=DEVELOPMENT_THEME_ID") do |development_theme_id|
|
|
39
|
-
flags[:development_theme_id] = development_theme_id.to_i
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def call(_args, name)
|
|
44
|
-
root = root_value(options, name)
|
|
45
|
-
return if exist_and_not_empty?(root) && !valid_theme_directory?(root)
|
|
46
|
-
|
|
47
|
-
development_theme_id = options.flags[:development_theme_id]
|
|
48
|
-
ShopifyCLI::DB.set(development_theme_id: development_theme_id) unless development_theme_id.nil?
|
|
49
|
-
|
|
50
|
-
delete = !options.flags[:nodelete]
|
|
51
|
-
theme = find_theme(root, **options.flags)
|
|
52
|
-
return if theme.nil?
|
|
53
|
-
|
|
54
|
-
include_filter = ShopifyCLI::Theme::IncludeFilter.new(root, options.flags[:includes])
|
|
55
|
-
ignore_filter = ShopifyCLI::Theme::IgnoreFilter.from_path(root)
|
|
56
|
-
ignore_filter.add_patterns(options.flags[:ignores]) if options.flags[:ignores]
|
|
57
|
-
|
|
58
|
-
syncer = ShopifyCLI::Theme::Syncer.new(@ctx, theme: theme,
|
|
59
|
-
include_filter: include_filter,
|
|
60
|
-
ignore_filter: ignore_filter)
|
|
61
|
-
begin
|
|
62
|
-
syncer.start_threads
|
|
63
|
-
CLI::UI::Frame.open(@ctx.message("theme.pull.pulling", theme.name, theme.id, theme.shop)) do
|
|
64
|
-
UI::SyncProgressBar.new(syncer).progress(:download_theme!, delete: delete)
|
|
65
|
-
end
|
|
66
|
-
if syncer.has_any_error?
|
|
67
|
-
@ctx.warn(@ctx.message("theme.pull.done_with_errors"))
|
|
68
|
-
else
|
|
69
|
-
@ctx.done(@ctx.message("theme.pull.done"))
|
|
70
|
-
end
|
|
71
|
-
rescue ShopifyCLI::API::APIRequestNotFoundError
|
|
72
|
-
@ctx.abort(@ctx.message("theme.pull.theme_not_found", "##{theme.id}"))
|
|
73
|
-
ensure
|
|
74
|
-
syncer.shutdown
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def self.help
|
|
79
|
-
ShopifyCLI::Context.message("theme.pull.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
private
|
|
83
|
-
|
|
84
|
-
def find_theme(root, theme_id: nil, theme: nil, live: nil, development: nil, **_args)
|
|
85
|
-
if theme_id
|
|
86
|
-
@ctx.warn(@ctx.message("theme.pull.deprecated_themeid"))
|
|
87
|
-
return ShopifyCLI::Theme::Theme.new(@ctx, root: root, id: theme_id)
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if theme
|
|
91
|
-
selected_theme = ShopifyCLI::Theme::Theme.find_by_identifier(@ctx, root: root, identifier: theme)
|
|
92
|
-
return selected_theme || @ctx.abort(@ctx.message("theme.pull.theme_not_found", theme))
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if live
|
|
96
|
-
return ShopifyCLI::Theme::Theme.live(@ctx, root: root)
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if development
|
|
100
|
-
dev_theme = ShopifyCLI::Theme::DevelopmentTheme.find(@ctx, root: root)
|
|
101
|
-
return dev_theme || @ctx.abort(@ctx.message("theme.pull.theme_not_found", "development"))
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
select_theme(root)
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
def select_theme(root)
|
|
108
|
-
form = Forms::Select.ask(
|
|
109
|
-
@ctx,
|
|
110
|
-
[],
|
|
111
|
-
title: @ctx.message("theme.pull.select", shop),
|
|
112
|
-
root: root,
|
|
113
|
-
)
|
|
114
|
-
form&.theme
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
end
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "shopify_cli/theme/theme"
|
|
3
|
-
require "shopify_cli/theme/development_theme"
|
|
4
|
-
require "shopify_cli/theme/ignore_filter"
|
|
5
|
-
require "shopify_cli/theme/include_filter"
|
|
6
|
-
require "shopify_cli/theme/syncer"
|
|
7
|
-
require "project_types/theme/commands/common/root_helper"
|
|
8
|
-
require "project_types/theme/commands/common/shop_helper"
|
|
9
|
-
require "project_types/theme/conversions/include_glob"
|
|
10
|
-
require "project_types/theme/conversions/ignore_glob"
|
|
11
|
-
|
|
12
|
-
module Theme
|
|
13
|
-
class Command
|
|
14
|
-
class Push < ShopifyCLI::Command::SubCommand
|
|
15
|
-
include Common::ShopHelper
|
|
16
|
-
include Common::RootHelper
|
|
17
|
-
|
|
18
|
-
recommend_default_ruby_range
|
|
19
|
-
|
|
20
|
-
options do |parser, flags|
|
|
21
|
-
Conversions::IncludeGlob.register(parser)
|
|
22
|
-
Conversions::IgnoreGlob.register(parser)
|
|
23
|
-
|
|
24
|
-
parser.on("-n", "--nodelete") { flags[:nodelete] = true }
|
|
25
|
-
parser.on("-i", "--themeid=ID") { |theme_id| flags[:theme_id] = theme_id }
|
|
26
|
-
parser.on("-t", "--theme=NAME_OR_ID") { |theme| flags[:theme] = theme }
|
|
27
|
-
parser.on("-l", "--live") { flags[:live] = true }
|
|
28
|
-
parser.on("-d", "--development") { flags[:development] = true }
|
|
29
|
-
parser.on("-u", "--unpublished") { flags[:unpublished] = true }
|
|
30
|
-
parser.on("-j", "--json") { flags[:json] = true }
|
|
31
|
-
parser.on("-a", "--allow-live") { flags[:allow_live] = true }
|
|
32
|
-
parser.on("-p", "--publish") { flags[:publish] = true }
|
|
33
|
-
parser.on("-s", "--stable") { flags[:stable] = true }
|
|
34
|
-
parser.on("-o", "--only=PATTERN", Conversions::IncludeGlob) do |pattern|
|
|
35
|
-
flags[:includes] ||= []
|
|
36
|
-
flags[:includes] |= pattern
|
|
37
|
-
end
|
|
38
|
-
parser.on("-x", "--ignore=PATTERN", Conversions::IgnoreGlob) do |pattern|
|
|
39
|
-
flags[:ignores] ||= []
|
|
40
|
-
flags[:ignores] |= pattern
|
|
41
|
-
end
|
|
42
|
-
parser.on("-f", "--force") { flags[:force] = true }
|
|
43
|
-
parser.on("--development-theme-id=DEVELOPMENT_THEME_ID") do |development_theme_id|
|
|
44
|
-
flags[:development_theme_id] = development_theme_id.to_i
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
def call(_args, name)
|
|
49
|
-
root = root_value(options, name)
|
|
50
|
-
return unless valid_theme_directory?(root)
|
|
51
|
-
|
|
52
|
-
development_theme_id = options.flags[:development_theme_id]
|
|
53
|
-
ShopifyCLI::DB.set(development_theme_id: development_theme_id) unless development_theme_id.nil?
|
|
54
|
-
|
|
55
|
-
delete = !options.flags[:nodelete]
|
|
56
|
-
theme = find_theme(root, **options.flags)
|
|
57
|
-
return if theme.nil?
|
|
58
|
-
|
|
59
|
-
if theme.live? && !options.flags[:allow_live]
|
|
60
|
-
question = @ctx.message("theme.push.live")
|
|
61
|
-
question += @ctx.message("theme.push.theme", theme.name, theme.id) if options.flags[:live]
|
|
62
|
-
return unless CLI::UI::Prompt.confirm(question)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
include_filter = ShopifyCLI::Theme::IncludeFilter.new(root, options.flags[:includes])
|
|
66
|
-
ignore_filter = ShopifyCLI::Theme::IgnoreFilter.from_path(root)
|
|
67
|
-
ignore_filter.add_patterns(options.flags[:ignores]) if options.flags[:ignores]
|
|
68
|
-
|
|
69
|
-
syncer = ShopifyCLI::Theme::Syncer.new(@ctx, theme: theme,
|
|
70
|
-
include_filter: include_filter,
|
|
71
|
-
ignore_filter: ignore_filter,
|
|
72
|
-
stable: options.flags[:stable])
|
|
73
|
-
begin
|
|
74
|
-
syncer.start_threads
|
|
75
|
-
if options.flags[:json]
|
|
76
|
-
syncer.standard_reporter.disable!
|
|
77
|
-
syncer.upload_theme!(delete: delete)
|
|
78
|
-
else
|
|
79
|
-
CLI::UI::Frame.open(@ctx.message("theme.push.info.pushing", theme.name, theme.id, theme.shop)) do
|
|
80
|
-
UI::SyncProgressBar.new(syncer).progress(:upload_theme!, delete: delete)
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
push_completion_handler(theme, syncer.has_any_error?)
|
|
84
|
-
ensure
|
|
85
|
-
syncer.shutdown
|
|
86
|
-
end
|
|
87
|
-
rescue ShopifyCLI::API::APIRequestNotFoundError
|
|
88
|
-
@ctx.abort(@ctx.message("theme.push.theme_not_found", "##{theme.id}"))
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
def self.help
|
|
92
|
-
ShopifyCLI::Context.message("theme.push.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
private
|
|
96
|
-
|
|
97
|
-
def push_completion_handler(theme, has_errors)
|
|
98
|
-
if options.flags[:json]
|
|
99
|
-
output = { theme: theme.to_h }
|
|
100
|
-
output[:warning] = @ctx.message("theme.push.with_errors") if has_errors
|
|
101
|
-
|
|
102
|
-
puts(JSON.generate(output))
|
|
103
|
-
elsif options.flags[:publish]
|
|
104
|
-
theme.publish
|
|
105
|
-
return @ctx.done(@ctx.message("theme.publish.done", theme.preview_url)) unless has_errors
|
|
106
|
-
@ctx.warn(@ctx.message("theme.publish.done_with_errors", theme.preview_url))
|
|
107
|
-
else
|
|
108
|
-
return @ctx.done(@ctx.message("theme.push.done", theme.preview_url, theme.editor_url)) unless has_errors
|
|
109
|
-
@ctx.warn(@ctx.message("theme.push.done_with_errors", theme.preview_url, theme.editor_url))
|
|
110
|
-
end
|
|
111
|
-
raise ShopifyCLI::AbortSilent if has_errors
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
def find_theme(root, theme_id: nil, theme: nil, live: nil, development: nil, unpublished: nil, **_args)
|
|
115
|
-
if theme_id
|
|
116
|
-
@ctx.warn(@ctx.message("theme.push.deprecated_themeid"))
|
|
117
|
-
return ShopifyCLI::Theme::Theme.new(@ctx, root: root, id: theme_id)
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
if live
|
|
121
|
-
return ShopifyCLI::Theme::Theme.live(@ctx, root: root)
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
if development
|
|
125
|
-
return ShopifyCLI::Theme::DevelopmentTheme.find_or_create!(@ctx, root: root)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if unpublished
|
|
129
|
-
name = theme || ask_theme_name
|
|
130
|
-
return ShopifyCLI::Theme::Theme.create_unpublished(@ctx, root: root, name: name)
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
if theme
|
|
134
|
-
selected_theme = ShopifyCLI::Theme::Theme.find_by_identifier(@ctx, root: root, identifier: theme)
|
|
135
|
-
return selected_theme || @ctx.abort(@ctx.message("theme.push.theme_not_found", theme))
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
select_theme(root)
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
def ask_theme_name
|
|
142
|
-
CLI::UI::Prompt.ask(@ctx.message("theme.push.name"), allow_empty: false)
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
def select_theme(root)
|
|
146
|
-
form = Forms::Select.ask(
|
|
147
|
-
@ctx,
|
|
148
|
-
[],
|
|
149
|
-
title: @ctx.message("theme.push.select", shop),
|
|
150
|
-
root: root,
|
|
151
|
-
)
|
|
152
|
-
form&.theme
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def themes(root)
|
|
156
|
-
ShopifyCLI::Theme::Theme.all(@ctx, root: root)
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|