@shopify/cli 3.69.4 → 3.70.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/chunk-2PUMVRDO.js +131 -0
- package/dist/{chunk-KM4TMAQ2.js → chunk-335KXO4I.js} +12 -8
- package/dist/{chunk-HV364V3E.js → chunk-43YGIE7Y.js} +2 -2
- package/dist/chunk-47OJGAFT.js +28 -0
- package/dist/chunk-5OP2SA7G.js +3634 -0
- package/dist/{chunk-YNL4XNMX.js → chunk-5QQTRGJ7.js} +4 -4
- package/dist/{chunk-FWX3KCDM.js → chunk-7GNQ7YY4.js} +7 -7
- package/dist/{chunk-2JRUKBKX.js → chunk-AT4IG4GJ.js} +32 -216
- package/dist/{chunk-BMTELIUS.js → chunk-BMNDAI5O.js} +4 -4
- package/dist/{chunk-6XKWVDB6.js → chunk-CBBS4CV7.js} +3 -3
- package/dist/{chunk-27ILOE3X.js → chunk-CBD6UXLA.js} +8 -8
- package/dist/chunk-DVTWERMH.js +105 -0
- package/dist/{chunk-FX2HB3CJ.js → chunk-E2SYFYJU.js} +4 -4
- package/dist/{chunk-JHVVETTP.js → chunk-FDJVVEGH.js} +17 -7
- package/dist/{chunk-7NPDPZ22.js → chunk-GDYKHT64.js} +2610 -6199
- package/dist/{chunk-EJGKAHVK.js → chunk-I3IIDOBX.js} +3 -3
- package/dist/{chunk-ISDSND4L.js → chunk-JLK5OMFF.js} +2 -2
- package/dist/{chunk-N3U3EHOE.js → chunk-KYBCPKPL.js} +3 -3
- package/dist/{chunk-S2IXL3EU.js → chunk-LN444KRM.js} +2 -2
- package/dist/chunk-MH5JSAVK.js +28 -0
- package/dist/{chunk-TLZ4ZBH3.js → chunk-MMQOVZDR.js} +6 -4
- package/dist/{chunk-UQUVQV3X.js → chunk-MQXHFQM3.js} +4 -4
- package/dist/{chunk-F54UWMGQ.js → chunk-MRDDDATQ.js} +3 -3
- package/dist/{chunk-6IATSQ3X.js → chunk-N2DEYZD6.js} +3 -3
- package/dist/{chunk-334DJQUN.js → chunk-N4X7XQWN.js} +2 -2
- package/dist/{chunk-YPWRQ5AU.js → chunk-ND6AGPC6.js} +3 -3
- package/dist/{chunk-A3JXD7N7.js → chunk-NEOIQ6PN.js} +3 -3
- package/dist/{chunk-OWCYMR5Y.js → chunk-NH4U4X67.js} +3 -3
- package/dist/{chunk-VQ3R5DHS.js → chunk-NYFXBTWK.js} +3 -3
- package/dist/{chunk-GYP4MV72.js → chunk-P6ABWRKD.js} +7 -7
- package/dist/{chunk-2NCWYVM4.js → chunk-PJKCWDDX.js} +117 -117
- package/dist/{chunk-VHEJRU4K.js → chunk-PKE54TAY.js} +5 -5
- package/dist/{chunk-FVUAIT37.js → chunk-RUK73IAH.js} +2 -2
- package/dist/{chunk-RYTZQSHH.js → chunk-SYRHCENA.js} +2 -2
- package/dist/{chunk-K3GASX6Y.js → chunk-TCTXUAZT.js} +3 -3
- package/dist/chunk-UOZCMFCN.js +160 -0
- package/dist/{chunk-7B5FNNVB.js → chunk-VFQMUAHB.js} +4 -4
- package/dist/{chunk-ORDEDRCZ.js → chunk-VHAXHYTL.js} +3 -3
- package/dist/{chunk-CPEFXM7T.js → chunk-VT3VJHZ7.js} +4 -4
- package/dist/{chunk-TV5WOUSX.js → chunk-WI6MEN7U.js} +2 -2
- package/dist/{chunk-WHP4CEBJ.js → chunk-WN3FKMKB.js} +14 -14
- package/dist/{chunk-Y3MSANL5.js → chunk-X6F3DHKX.js} +2 -2
- package/dist/{chunk-P7JUHQKL.js → chunk-XEDHKQZA.js} +4 -3
- package/dist/{chunk-BRO6DC7D.js → chunk-XSMWYZDC.js} +17 -23
- package/dist/cli/commands/auth/logout.js +20 -18
- package/dist/cli/commands/auth/logout.test.js +25 -23
- package/dist/cli/commands/cache/clear.d.ts +6 -0
- package/dist/cli/commands/cache/clear.js +35 -0
- package/dist/cli/commands/debug/command-flags.js +19 -17
- package/dist/cli/commands/demo/catalog.js +20 -18
- package/dist/cli/commands/demo/generate-file.js +20 -18
- package/dist/cli/commands/demo/index.js +20 -18
- package/dist/cli/commands/demo/print-ai-prompt.js +20 -18
- package/dist/cli/commands/docs/generate.js +19 -17
- package/dist/cli/commands/docs/generate.test.js +19 -17
- package/dist/cli/commands/help.js +19 -17
- package/dist/cli/commands/kitchen-sink/async.js +20 -18
- package/dist/cli/commands/kitchen-sink/async.test.js +20 -18
- package/dist/cli/commands/kitchen-sink/index.js +22 -20
- package/dist/cli/commands/kitchen-sink/index.test.js +22 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +20 -18
- package/dist/cli/commands/kitchen-sink/prompts.test.js +20 -18
- package/dist/cli/commands/kitchen-sink/static.js +20 -18
- package/dist/cli/commands/kitchen-sink/static.test.js +20 -18
- package/dist/cli/commands/notifications/generate.d.ts +6 -0
- package/dist/cli/commands/notifications/generate.js +36 -0
- package/dist/cli/commands/notifications/list.d.ts +6 -0
- package/dist/cli/commands/notifications/list.js +36 -0
- package/dist/cli/commands/search.js +20 -18
- package/dist/cli/commands/upgrade.js +20 -18
- package/dist/cli/commands/version.js +20 -18
- package/dist/cli/commands/version.test.js +20 -18
- package/dist/cli/services/commands/notifications.d.ts +2 -0
- package/dist/cli/services/commands/notifications.js +31 -0
- package/dist/cli/services/commands/search.js +9 -9
- package/dist/cli/services/commands/search.test.js +9 -9
- package/dist/cli/services/commands/version.js +10 -10
- package/dist/cli/services/commands/version.test.js +11 -11
- package/dist/cli/services/demo.js +9 -9
- package/dist/cli/services/demo.test.js +11 -11
- package/dist/cli/services/kitchen-sink/async.js +9 -9
- package/dist/cli/services/kitchen-sink/prompts.js +9 -9
- package/dist/cli/services/kitchen-sink/static.js +9 -9
- package/dist/cli/services/upgrade.js +10 -10
- package/dist/cli/services/upgrade.test.js +12 -12
- package/dist/{constants-T7JXE5K7.js → constants-QFFDI47A.js} +6 -4
- package/dist/{custom-oclif-loader-TBU3GENB.js → custom-oclif-loader-IZLFCRGJ.js} +11 -11
- package/dist/data/filters.json +39 -16
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +164 -6
- package/dist/data/shopify_system_translations.json +32 -3
- package/dist/{del-7ZS2Z64N.js → del-FEQWOMIX.js} +2 -2
- package/dist/{error-handler-IL72ACEX.js → error-handler-DAI5HMQW.js} +17 -16
- package/dist/hooks/postrun.js +14 -13
- package/dist/hooks/prerun.js +14 -13
- package/dist/index.js +9901 -8692
- package/dist/{lib-JHUCJTHS.js → lib-JJXX7GH6.js} +5 -5
- package/dist/{local-OE2I46PA.js → local-QD6GDUUE.js} +9 -9
- package/dist/{morph-UIXWG2S7.js → morph-FN23MJ2S.js} +2 -2
- package/dist/{node-SDBKEHIV.js → node-4XKDIIJ7.js} +21 -19
- package/dist/{node-package-manager-LPDV6HZY.js → node-package-manager-IEZ6F5VN.js} +10 -10
- package/dist/{system-SGABHAU2.js → system-KSIGUX64.js} +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-WB42ZV4M.js → ui-BUB4OWO7.js} +9 -9
- package/dist/{workerd-YWTPL4SF.js → workerd-DIIGDIHZ.js} +21 -19
- package/oclif.manifest.json +60 -93
- package/package.json +6 -6
- 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
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "project_types/extension/loaders/project"
|
|
3
|
-
require "project_types/extension/loaders/specification_handler"
|
|
4
|
-
require "shopify_cli/partners_api"
|
|
5
|
-
require "shopify_cli/thread_pool/job"
|
|
6
|
-
require "shopify_cli/theme/notifier"
|
|
7
|
-
|
|
8
|
-
module ShopifyCLI
|
|
9
|
-
module Theme
|
|
10
|
-
module Extension
|
|
11
|
-
class Syncer
|
|
12
|
-
class ExtensionServeJob < ThreadPool::Job
|
|
13
|
-
POLL_FREQUENCY = 0.5 # second
|
|
14
|
-
PUSH_INTERVAL = 5 # seconds
|
|
15
|
-
|
|
16
|
-
RESPONSE_FIELD = %w(data extensionUpdateDraft)
|
|
17
|
-
VERSION_FIELD = "extensionVersion"
|
|
18
|
-
USER_ERRORS_FIELD = "userErrors"
|
|
19
|
-
ERROR_FILE_REGEX = /\[([^\]\[]*)\]/
|
|
20
|
-
|
|
21
|
-
def initialize(ctx, syncer:, extension:, project:, specification_handler:, notify:)
|
|
22
|
-
super(POLL_FREQUENCY)
|
|
23
|
-
|
|
24
|
-
@ctx = ctx
|
|
25
|
-
@extension = extension
|
|
26
|
-
@project = project
|
|
27
|
-
@specification_handler = specification_handler
|
|
28
|
-
|
|
29
|
-
@notifier = ShopifyCLI::Theme::Notifier.new(ctx, path: notify)
|
|
30
|
-
@syncer = syncer
|
|
31
|
-
@syncer_mutex = Mutex.new
|
|
32
|
-
|
|
33
|
-
@job_in_progress = false
|
|
34
|
-
@job_in_progress_mutex = Mutex.new
|
|
35
|
-
|
|
36
|
-
$stdout.sync = true
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def perform!
|
|
40
|
-
return unless @syncer.any_operation?
|
|
41
|
-
return if job_in_progress?
|
|
42
|
-
return if recently_synced? && !@syncer.any_blocking_operation?
|
|
43
|
-
|
|
44
|
-
job_in_progress!
|
|
45
|
-
|
|
46
|
-
print_items({}.freeze)
|
|
47
|
-
|
|
48
|
-
files = @syncer.pending_files.map(&:relative_path)
|
|
49
|
-
# Notify changes after the sync is complete
|
|
50
|
-
@notifier.notify_updates(files)
|
|
51
|
-
|
|
52
|
-
@syncer_mutex.synchronize do
|
|
53
|
-
@syncer.pending_operations.clear
|
|
54
|
-
@syncer.latest_sync = Time.now
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
ensure
|
|
58
|
-
job_in_progress!(false)
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
private
|
|
62
|
-
|
|
63
|
-
def job_in_progress!(in_progress = true)
|
|
64
|
-
@job_in_progress_mutex.synchronize { @job_in_progress = in_progress }
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
def job_in_progress?
|
|
68
|
-
@job_in_progress
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def recently_synced?
|
|
72
|
-
Time.now - @syncer.latest_sync < PUSH_INTERVAL
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
def success_message(project)
|
|
76
|
-
"{{green:Pushed}} {{>}} {{blue:'#{project}'}} to a draft"
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
def error_message(project)
|
|
80
|
-
"{{red:Error}} {{>}} {{blue:'#{project}'}} could not be pushed:"
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def print_file_success(file)
|
|
84
|
-
@ctx.puts("{{blue:- #{file.relative_path}}}")
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def print_file_error(file, err)
|
|
88
|
-
@ctx.puts("{{red:- #{file.relative_path}}}")
|
|
89
|
-
@ctx.puts("{{red: - Cause: #{err}}}")
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
def erroneous_files(errors)
|
|
93
|
-
files = {}
|
|
94
|
-
errors.each do |e|
|
|
95
|
-
path = e["message"][ERROR_FILE_REGEX, 1]
|
|
96
|
-
file = @extension[path]
|
|
97
|
-
files[file] = e["message"]
|
|
98
|
-
end
|
|
99
|
-
files
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
def print_items(erroneous_files)
|
|
103
|
-
@syncer.pending_files.each do |file|
|
|
104
|
-
err = erroneous_files.dig(file)
|
|
105
|
-
if err
|
|
106
|
-
print_file_error(file, err)
|
|
107
|
-
erroneous_files.delete(file)
|
|
108
|
-
else
|
|
109
|
-
print_file_success(file)
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
erroneous_files.each do |file, err|
|
|
113
|
-
print_file_error(file, err)
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "pathname"
|
|
4
|
-
|
|
5
|
-
module ShopifyCLI
|
|
6
|
-
module Theme
|
|
7
|
-
module Extension
|
|
8
|
-
class Syncer
|
|
9
|
-
class Operation < Struct.new(:file, :kind)
|
|
10
|
-
def delete?
|
|
11
|
-
kind == :delete
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def create?
|
|
15
|
-
kind == :create
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def file_path
|
|
19
|
-
file.relative_path
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "syncer/extension_serve_job"
|
|
4
|
-
require_relative "syncer/operation"
|
|
5
|
-
require_relative "ignore_helper"
|
|
6
|
-
|
|
7
|
-
require "shopify_cli/thread_pool"
|
|
8
|
-
|
|
9
|
-
module ShopifyCLI
|
|
10
|
-
module Theme
|
|
11
|
-
module Extension
|
|
12
|
-
class Syncer
|
|
13
|
-
include ShopifyCLI::Theme::Extension::IgnoreHelper
|
|
14
|
-
|
|
15
|
-
attr_accessor :pending_operations, :latest_sync, :ignore_filter, :notify
|
|
16
|
-
|
|
17
|
-
def initialize(ctx, extension:, project:, specification_handler:, ignore_filter: nil, notify: nil)
|
|
18
|
-
@ctx = ctx
|
|
19
|
-
@extension = extension
|
|
20
|
-
@project = project
|
|
21
|
-
@specification_handler = specification_handler
|
|
22
|
-
@ignore_filter = ignore_filter
|
|
23
|
-
@notify = notify
|
|
24
|
-
|
|
25
|
-
@pool = ThreadPool.new(pool_size: 1)
|
|
26
|
-
@pending_operations = []
|
|
27
|
-
|
|
28
|
-
extension.extension_files.each do |file|
|
|
29
|
-
operation = Operation.new(file, :update)
|
|
30
|
-
@pending_operations << operation if enqueueable?(operation)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
@pending_operations_mutex = Mutex.new
|
|
34
|
-
@latest_sync = Time.now - ExtensionServeJob::PUSH_INTERVAL
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
def enqueue_creates(files)
|
|
38
|
-
operations = files.map { |file| Operation.new(file, :create) }
|
|
39
|
-
enqueue_operations(operations)
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def enqueue_updates(files)
|
|
43
|
-
operations = files.map { |file| Operation.new(file, :update) }
|
|
44
|
-
enqueue_operations(operations)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def enqueue_deletes(files)
|
|
48
|
-
operations = files.map { |file| Operation.new(file, :delete) }
|
|
49
|
-
enqueue_operations(operations)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def start
|
|
53
|
-
@pool.schedule(job)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def shutdown
|
|
57
|
-
@pool.shutdown
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def pending_files
|
|
61
|
-
pending_operations.map(&:file)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def any_operation?
|
|
65
|
-
pending_operations.any?
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def any_blocking_operation?
|
|
69
|
-
pending_operations.any? { |operation| operation.delete? || operation.create? }
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
private
|
|
73
|
-
|
|
74
|
-
def enqueueable?(operation)
|
|
75
|
-
# Already enqueued or ignored
|
|
76
|
-
return false if @pending_operations.include?(operation) || ignore_operation?(operation)
|
|
77
|
-
|
|
78
|
-
true
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
def enqueue_operations(operations)
|
|
82
|
-
@pending_operations_mutex.synchronize do
|
|
83
|
-
operations.each { |f| @pending_operations << f if enqueueable?(f) }
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def job
|
|
88
|
-
ExtensionServeJob.new(
|
|
89
|
-
@ctx,
|
|
90
|
-
syncer: self,
|
|
91
|
-
extension: @extension,
|
|
92
|
-
project: @project,
|
|
93
|
-
specification_handler: @specification_handler,
|
|
94
|
-
notify: notify,
|
|
95
|
-
)
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
module ShopifyCLI
|
|
3
|
-
module Theme
|
|
4
|
-
module Extension
|
|
5
|
-
module UI
|
|
6
|
-
class HostThemeProgressBar
|
|
7
|
-
GIT_CLONE_PROGRESS_SHARE = 0.2
|
|
8
|
-
SYNC_PROGRESS_SHARE = 0.8
|
|
9
|
-
|
|
10
|
-
def initialize(syncer, dir)
|
|
11
|
-
@syncer = syncer
|
|
12
|
-
@dir = dir
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def progress(method, **args)
|
|
16
|
-
@syncer.lock_io!
|
|
17
|
-
CLI::UI::Progress.progress do |bar|
|
|
18
|
-
Git.public_send(:raw_clone, "https://github.com/Shopify/dawn.git", @dir) do |percent|
|
|
19
|
-
bar.tick(set_percent: percent * GIT_CLONE_PROGRESS_SHARE)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
@syncer.public_send(method, **args) do |left, total|
|
|
23
|
-
next if total == 0
|
|
24
|
-
bar.tick(set_percent: (1 - left.to_f / total) * SYNC_PROGRESS_SHARE + GIT_CLONE_PROGRESS_SHARE)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
bar.tick(set_percent: 1)
|
|
28
|
-
end
|
|
29
|
-
@syncer.unlock_io!
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_raw_progress_bar.rb
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
module ShopifyCLI
|
|
3
|
-
module Theme
|
|
4
|
-
module Extension
|
|
5
|
-
module UI
|
|
6
|
-
class HostThemeRawProgressBar
|
|
7
|
-
GIT_CLONE_PROGRESS_SHARE = 0.2
|
|
8
|
-
SYNC_PROGRESS_SHARE = 0.8
|
|
9
|
-
|
|
10
|
-
def initialize(syncer, dir)
|
|
11
|
-
@syncer = syncer
|
|
12
|
-
@dir = dir
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def progress(method, **args)
|
|
16
|
-
@syncer.lock_io!
|
|
17
|
-
old_sync = $stdout.sync
|
|
18
|
-
$stdout.sync = true
|
|
19
|
-
CLI::UI::ProgressPlain.progress(prefix: "Pushing theme...") do |bar|
|
|
20
|
-
bar.tick(set_percent: 0)
|
|
21
|
-
|
|
22
|
-
Git.public_send(:raw_clone, "https://github.com/Shopify/dawn.git", @dir) do |percent|
|
|
23
|
-
bar.tick(set_percent: percent * GIT_CLONE_PROGRESS_SHARE)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
@syncer.public_send(method, **args) do |left, total|
|
|
27
|
-
next if total == 0
|
|
28
|
-
bar.tick(set_percent: (1 - left.to_f / total) * SYNC_PROGRESS_SHARE + GIT_CLONE_PROGRESS_SHARE)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
bar.tick(set_percent: 1)
|
|
32
|
-
end
|
|
33
|
-
$stdout.sync = old_sync
|
|
34
|
-
@syncer.unlock_io!
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require_relative "mime_type"
|
|
3
|
-
|
|
4
|
-
module ShopifyCLI
|
|
5
|
-
module Theme
|
|
6
|
-
class File < Struct.new(:path)
|
|
7
|
-
attr_accessor :remote_checksum
|
|
8
|
-
attr_writer :warnings
|
|
9
|
-
|
|
10
|
-
def initialize(path, root)
|
|
11
|
-
super(Pathname.new(path))
|
|
12
|
-
|
|
13
|
-
# Path may be relative or absolute depending on the source.
|
|
14
|
-
# By converting both the path and the root to absolute paths, we
|
|
15
|
-
# can safely fetch a relative path.
|
|
16
|
-
@relative_path = self.path.expand_path.relative_path_from(root.expand_path)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def read
|
|
20
|
-
if text?
|
|
21
|
-
path.read(universal_newline: true)
|
|
22
|
-
else
|
|
23
|
-
path.read(mode: "rb")
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def write(content)
|
|
28
|
-
path.parent.mkpath unless path.parent.directory?
|
|
29
|
-
if text?
|
|
30
|
-
path.write(content, universal_newline: true)
|
|
31
|
-
else
|
|
32
|
-
path.write(content, 0, mode: "wb")
|
|
33
|
-
end
|
|
34
|
-
rescue Encoding::UndefinedConversionError
|
|
35
|
-
##
|
|
36
|
-
# The CLI tries to write the file and normalize EOL characters to avoid
|
|
37
|
-
# errors on Windows when files are shared across different operational systems.
|
|
38
|
-
#
|
|
39
|
-
# The CLI fallbacks any error during the conversion by writing the file
|
|
40
|
-
# in binary mode when the normalization fails (e.g., ASCII files), so no data is lost.
|
|
41
|
-
#
|
|
42
|
-
path.write(content, 0, mode: "wb")
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def delete
|
|
46
|
-
path.delete
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def exist?
|
|
50
|
-
path.exist?
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def mime_type
|
|
54
|
-
@mime_type ||= MimeType.by_filename(@relative_path)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def text?
|
|
58
|
-
mime_type.text?
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def liquid?
|
|
62
|
-
path.extname == ".liquid"
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
def liquid_css?
|
|
66
|
-
relative_path.end_with?(".css.liquid")
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def json?
|
|
70
|
-
path.extname == ".json"
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def static_json?
|
|
74
|
-
json? && relative_path.start_with?("assets/")
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
def template?
|
|
78
|
-
relative_path.start_with?("templates/")
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
def checksum
|
|
82
|
-
content = read
|
|
83
|
-
|
|
84
|
-
if mime_type.json? && !settings_schema? && !static_json?
|
|
85
|
-
# Normalize JSON to match backend
|
|
86
|
-
begin
|
|
87
|
-
content = normalize_json(content)
|
|
88
|
-
rescue JSON::JSONError
|
|
89
|
-
# Fallback to using the raw content
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
Digest::MD5.hexdigest(content)
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Make it possible to check whether a given File is within a list of Files with `include?`,
|
|
97
|
-
# some of which may be relative paths while others are absolute paths.
|
|
98
|
-
def ==(other)
|
|
99
|
-
relative_path == other.relative_path
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
def name(*args)
|
|
103
|
-
::File.basename(path, *args)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
def absolute_path
|
|
107
|
-
path.realpath.to_s
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
def relative_path
|
|
111
|
-
@relative_path.to_s
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
def warnings
|
|
115
|
-
@warnings || []
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
private
|
|
119
|
-
|
|
120
|
-
def settings_schema?
|
|
121
|
-
relative_path.end_with?("config/settings_schema.json")
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
def normalize_json(content)
|
|
125
|
-
normalized = JSON.generate(JSON.parse(content))
|
|
126
|
-
|
|
127
|
-
# Backend escapes forward slashes
|
|
128
|
-
normalized.gsub!(/\//, "\\/")
|
|
129
|
-
normalized
|
|
130
|
-
end
|
|
131
|
-
end
|
|
132
|
-
end
|
|
133
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ShopifyCLI
|
|
4
|
-
module Theme
|
|
5
|
-
module Filter
|
|
6
|
-
module PathMatcher
|
|
7
|
-
def regex_match?(regex, path)
|
|
8
|
-
regex.match?(path)
|
|
9
|
-
rescue StandardError
|
|
10
|
-
false
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def glob_match?(glob, path)
|
|
14
|
-
!!::File.fnmatch?(glob, path)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def regex?(pattern)
|
|
18
|
-
pattern.start_with?("/") && pattern.end_with?("/")
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def as_regex(pattern)
|
|
22
|
-
Regexp.new(pattern.gsub(%r{^\/|\/$}, ""))
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def as_glob(pattern)
|
|
26
|
-
# if specifying a directory, match everything below it
|
|
27
|
-
pattern += "*" if pattern.end_with?("/")
|
|
28
|
-
|
|
29
|
-
# The pattern will be scoped to root directory, so it should match anything
|
|
30
|
-
# within that space
|
|
31
|
-
pattern.prepend("*") unless pattern.start_with?("*")
|
|
32
|
-
|
|
33
|
-
pattern
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "filter/path_matcher"
|
|
4
|
-
|
|
5
|
-
module ShopifyCLI
|
|
6
|
-
module Theme
|
|
7
|
-
class IgnoreFilter
|
|
8
|
-
include Filter::PathMatcher
|
|
9
|
-
|
|
10
|
-
FILE = ".shopifyignore"
|
|
11
|
-
|
|
12
|
-
DEFAULT_REGEXES = [
|
|
13
|
-
/\.git/,
|
|
14
|
-
/\.hg/,
|
|
15
|
-
/\.bzr/,
|
|
16
|
-
/\.svn/,
|
|
17
|
-
/_darcs/,
|
|
18
|
-
/CVS/,
|
|
19
|
-
/\.sublime-(project|workspace)/,
|
|
20
|
-
/\.DS_Store/,
|
|
21
|
-
/\.sass-cache/,
|
|
22
|
-
/Thumbs\.db/,
|
|
23
|
-
/desktop\.ini/,
|
|
24
|
-
/config.yml/,
|
|
25
|
-
/node_modules/,
|
|
26
|
-
].freeze
|
|
27
|
-
|
|
28
|
-
DEFAULT_GLOBS = [].freeze
|
|
29
|
-
|
|
30
|
-
attr_reader :root, :globs, :regexes
|
|
31
|
-
|
|
32
|
-
def self.from_path(root)
|
|
33
|
-
root = Pathname.new(root)
|
|
34
|
-
ignore_file = root.join(FILE)
|
|
35
|
-
patterns = if ignore_file.file?
|
|
36
|
-
parse_ignore_file(ignore_file)
|
|
37
|
-
else
|
|
38
|
-
[]
|
|
39
|
-
end
|
|
40
|
-
new(root, patterns: patterns)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def self.parse_ignore_file(file)
|
|
44
|
-
patterns = []
|
|
45
|
-
|
|
46
|
-
file.each_line do |line|
|
|
47
|
-
line.strip!
|
|
48
|
-
|
|
49
|
-
next if line.empty? || line.start_with?("#")
|
|
50
|
-
|
|
51
|
-
patterns << line
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
patterns
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def initialize(root, patterns: [])
|
|
58
|
-
@root = root
|
|
59
|
-
|
|
60
|
-
regexes, globs = patterns_to_regexes_and_globs(patterns)
|
|
61
|
-
|
|
62
|
-
@regexes = regexes
|
|
63
|
-
@globs = globs
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
def add_patterns(patterns)
|
|
67
|
-
regexes, globs = patterns_to_regexes_and_globs(patterns)
|
|
68
|
-
|
|
69
|
-
@regexes += regexes
|
|
70
|
-
@globs += globs
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def match?(path)
|
|
74
|
-
path = path.to_s
|
|
75
|
-
|
|
76
|
-
return true if path.empty?
|
|
77
|
-
|
|
78
|
-
regexes.each do |regex|
|
|
79
|
-
return true if regex_match?(regex, path)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
globs.each do |glob|
|
|
83
|
-
return true if glob_match?(glob, path)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
false
|
|
87
|
-
end
|
|
88
|
-
alias_method :ignore?, :match?
|
|
89
|
-
|
|
90
|
-
private
|
|
91
|
-
|
|
92
|
-
# Take in string patterns and convert them to either
|
|
93
|
-
# regex patterns or glob patterns so that they are handled in an expected manner.
|
|
94
|
-
def patterns_to_regexes_and_globs(patterns)
|
|
95
|
-
new_regexes = DEFAULT_REGEXES.dup
|
|
96
|
-
new_globs = DEFAULT_GLOBS.dup
|
|
97
|
-
|
|
98
|
-
patterns
|
|
99
|
-
.map(&:strip)
|
|
100
|
-
.each do |pattern|
|
|
101
|
-
if regex?(pattern)
|
|
102
|
-
new_regexes << as_regex(pattern)
|
|
103
|
-
else
|
|
104
|
-
new_globs << as_glob(pattern)
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
[new_regexes, new_globs]
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ShopifyCLI
|
|
4
|
-
module Theme
|
|
5
|
-
module IgnoreHelper
|
|
6
|
-
def ignore_operation?(operation)
|
|
7
|
-
path = operation.file_path
|
|
8
|
-
ignore_path?(path)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
def ignore_file?(file)
|
|
12
|
-
path = file.relative_path
|
|
13
|
-
ignore_path?(path)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def ignore_path?(path)
|
|
17
|
-
is_ignored = ignored_by_ignore_filter?(path) || ignored_by_include_filter?(path)
|
|
18
|
-
|
|
19
|
-
if is_ignored && @ctx
|
|
20
|
-
@ctx.debug("ignore #{path}")
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
is_ignored
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
def ignored_by_ignore_filter?(path)
|
|
29
|
-
ignore_filter&.ignore?(path)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def ignored_by_include_filter?(path)
|
|
33
|
-
!!include_filter && !include_filter.match?(path)
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "filter/path_matcher"
|
|
4
|
-
|
|
5
|
-
module ShopifyCLI
|
|
6
|
-
module Theme
|
|
7
|
-
class IncludeFilter
|
|
8
|
-
include Filter::PathMatcher
|
|
9
|
-
|
|
10
|
-
attr_reader :globs, :regexes
|
|
11
|
-
|
|
12
|
-
def initialize(root, patterns = [])
|
|
13
|
-
@root = Pathname.new(root)
|
|
14
|
-
@patterns = patterns.nil? ? [] : patterns.compact.reject(&:empty?)
|
|
15
|
-
|
|
16
|
-
regexes, globs = patterns_to_regexes_and_globs(@patterns)
|
|
17
|
-
|
|
18
|
-
@regexes = regexes
|
|
19
|
-
@globs = globs
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def match?(path)
|
|
23
|
-
return true unless present?(@patterns)
|
|
24
|
-
|
|
25
|
-
path = path.to_s
|
|
26
|
-
return true if path.empty?
|
|
27
|
-
|
|
28
|
-
path = @root.join(path).to_s
|
|
29
|
-
|
|
30
|
-
regexes.each do |regex|
|
|
31
|
-
return true if regex_match?(regex, path)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
globs.each do |glob|
|
|
35
|
-
return true if glob_match?(glob, path)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
false
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
private
|
|
42
|
-
|
|
43
|
-
def present?(patterns)
|
|
44
|
-
!patterns.nil? && !patterns.empty?
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Take in string patterns and convert them to either
|
|
48
|
-
# regex patterns or glob patterns so that they are handled in an expected manner.
|
|
49
|
-
def patterns_to_regexes_and_globs(patterns)
|
|
50
|
-
new_regexes = []
|
|
51
|
-
new_globs = []
|
|
52
|
-
|
|
53
|
-
patterns
|
|
54
|
-
.map(&:strip)
|
|
55
|
-
.each do |pattern|
|
|
56
|
-
if regex?(pattern)
|
|
57
|
-
new_regexes << as_regex(pattern)
|
|
58
|
-
else
|
|
59
|
-
new_globs << as_glob(pattern)
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
[new_regexes, new_globs]
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|