shopify-cli 2.6.5 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.devcontainer.json +5 -0
- data/.github/DESIGN.md +1 -1
- data/.github/ISSUE_TEMPLATE.md +7 -0
- data/.gitignore +1 -0
- data/.vscode/extensions.json +5 -0
- data/.vscode/settings.json +9 -0
- data/CHANGELOG.md +42 -4
- data/CONTRIBUTING.md +1 -21
- data/{Dockerfile → Codespace.dockerfile} +11 -3
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -4
- data/README.md +20 -99
- data/Rakefile +27 -0
- data/Tests.dockerfile +35 -0
- data/assets/logo.png +0 -0
- data/dev.yml +0 -3
- data/docs/README.md +13 -0
- data/docs/contributors/testing.md +27 -0
- data/docs/users/installation.md +46 -0
- data/{THEMEKIT_MIGRATION.md → docs/users/migrate-from-themekit.md} +1 -1
- data/ext/javy/javy.rb +186 -0
- data/ext/javy/version +1 -0
- data/lib/project_types/extension/cli.rb +7 -3
- data/lib/project_types/extension/commands/build.rb +4 -8
- data/lib/project_types/extension/commands/create.rb +3 -5
- data/lib/project_types/extension/commands/extension_command.rb +1 -1
- data/lib/project_types/extension/features/argo.rb +1 -8
- data/lib/project_types/extension/features/argo_serve.rb +9 -23
- data/lib/project_types/extension/forms/create.rb +1 -1
- data/lib/project_types/extension/forms/questions/ask_template.rb +3 -6
- data/lib/project_types/extension/messages/messages.rb +1 -2
- data/lib/project_types/extension/models/development_server.rb +2 -2
- data/lib/project_types/extension/models/development_server_requirements.rb +2 -3
- data/lib/project_types/extension/models/server_config/app.rb +13 -0
- data/lib/project_types/extension/models/server_config/development.rb +5 -4
- data/lib/project_types/extension/models/server_config/development_renderer.rb +1 -1
- data/lib/project_types/extension/models/server_config/development_resource.rb +13 -0
- data/lib/project_types/extension/models/server_config/extension.rb +4 -0
- data/lib/project_types/extension/models/server_config/root.rb +4 -1
- data/lib/project_types/extension/tasks/convert_server_config.rb +65 -0
- data/lib/project_types/extension/tasks/ensure_resource_url.rb +39 -0
- data/lib/project_types/extension/tasks/find_package_from_json.rb +37 -0
- data/lib/project_types/extension/tasks/merge_server_config.rb +32 -0
- data/lib/project_types/extension/tasks/run_extension_command.rb +11 -10
- data/lib/project_types/node/cli.rb +0 -16
- data/lib/project_types/node/forms/create.rb +5 -5
- data/lib/project_types/node/messages/messages.rb +2 -144
- data/lib/project_types/php/cli.rb +0 -11
- data/lib/project_types/php/forms/create.rb +5 -6
- data/lib/project_types/php/messages/messages.rb +2 -161
- data/lib/project_types/rails/cli.rb +0 -16
- data/lib/project_types/rails/commands/create.rb +43 -16
- data/lib/project_types/rails/forms/create.rb +5 -7
- data/lib/project_types/rails/messages/messages.rb +6 -151
- data/lib/project_types/script/cli.rb +7 -1
- data/lib/project_types/script/commands/create.rb +3 -8
- data/lib/project_types/script/commands/javy.rb +29 -0
- data/lib/project_types/script/commands/push.rb +3 -2
- data/lib/project_types/script/config/extension_points.yml +3 -26
- data/lib/project_types/script/errors.rb +0 -18
- data/lib/project_types/script/forms/ask_app.rb +32 -0
- data/lib/project_types/script/forms/ask_org.rb +30 -0
- data/lib/project_types/script/forms/ask_script_uuid.rb +22 -0
- data/lib/project_types/script/forms/run_against_shopify_org.rb +14 -0
- data/lib/project_types/script/layers/application/build_script.rb +0 -1
- data/lib/project_types/script/layers/application/connect_app.rb +73 -0
- data/lib/project_types/script/layers/application/create_script.rb +2 -2
- data/lib/project_types/script/layers/domain/script_json.rb +1 -1
- data/lib/project_types/script/layers/domain/script_project.rb +4 -0
- data/lib/project_types/script/layers/infrastructure/api_clients/partners_proxy_api_client.rb +0 -4
- data/lib/project_types/script/layers/infrastructure/errors.rb +8 -4
- data/lib/project_types/script/layers/infrastructure/languages/assemblyscript_task_runner.rb +1 -5
- data/lib/project_types/script/layers/infrastructure/languages/typescript_task_runner.rb +25 -4
- data/lib/project_types/script/layers/infrastructure/script_project_repository.rb +3 -4
- data/lib/project_types/script/layers/infrastructure/script_service.rb +1 -1
- data/lib/project_types/script/messages/messages.rb +16 -20
- data/lib/project_types/script/ui/error_handler.rb +1 -32
- data/lib/project_types/theme/cli.rb +1 -1
- data/lib/project_types/theme/commands/check.rb +1 -1
- data/lib/project_types/theme/commands/delete.rb +1 -1
- data/lib/project_types/theme/commands/init.rb +1 -1
- data/lib/project_types/theme/commands/language_server.rb +1 -1
- data/lib/project_types/theme/commands/package.rb +1 -1
- data/lib/project_types/theme/commands/publish.rb +1 -1
- data/lib/project_types/theme/commands/pull.rb +4 -1
- data/lib/project_types/theme/commands/push.rb +7 -2
- data/lib/project_types/theme/commands/serve.rb +9 -2
- data/lib/project_types/theme/messages/messages.rb +39 -1
- data/lib/project_types/theme/ui/sync_progress_bar.rb +2 -2
- data/lib/shopify_cli/admin_api/populate_resource_command.rb +1 -1
- data/lib/shopify_cli/api.rb +7 -2
- data/lib/shopify_cli/app_type_detector.rb +24 -20
- data/lib/shopify_cli/command/app_sub_command.rb +10 -0
- data/lib/shopify_cli/command/project_command.rb +31 -0
- data/lib/shopify_cli/command/sub_command.rb +19 -0
- data/lib/shopify_cli/command.rb +7 -2
- data/lib/shopify_cli/commands/app/connect.rb +22 -0
- data/lib/shopify_cli/commands/app/create/node.rb +36 -0
- data/lib/shopify_cli/commands/app/create/php.rb +36 -0
- data/lib/shopify_cli/commands/app/create/rails.rb +38 -0
- data/lib/shopify_cli/commands/app/create.rb +28 -0
- data/lib/shopify_cli/commands/app/deploy.rb +49 -0
- data/lib/shopify_cli/commands/app/open.rb +19 -0
- data/lib/shopify_cli/commands/app/serve.rb +49 -0
- data/lib/shopify_cli/commands/app/tunnel.rb +43 -0
- data/lib/shopify_cli/commands/app.rb +29 -0
- data/lib/shopify_cli/commands/config.rb +2 -2
- data/lib/shopify_cli/commands.rb +1 -0
- data/lib/shopify_cli/constants.rb +7 -0
- data/lib/shopify_cli/context.rb +9 -0
- data/lib/shopify_cli/environment.rb +4 -0
- data/lib/shopify_cli/exception_reporter.rb +8 -6
- data/lib/shopify_cli/git.rb +12 -1
- data/lib/shopify_cli/github/issue_url_generator.rb +19 -0
- data/lib/shopify_cli/github.rb +5 -0
- data/lib/shopify_cli/identity_auth.rb +18 -0
- data/lib/shopify_cli/messages/messages.rb +254 -9
- data/lib/shopify_cli/migrator.rb +9 -11
- data/lib/shopify_cli/partners_api.rb +1 -8
- data/lib/shopify_cli/project.rb +5 -1
- data/lib/shopify_cli/project_commands.rb +1 -1
- data/lib/shopify_cli/services/app/connect_service.rb +25 -0
- data/lib/shopify_cli/services/app/create/node_service.rb +155 -0
- data/lib/shopify_cli/services/app/create/php_service.rb +152 -0
- data/lib/shopify_cli/services/app/create/rails_service.rb +215 -0
- data/lib/shopify_cli/services/app/deploy/heroku/node_service.rb +101 -0
- data/lib/shopify_cli/services/app/deploy/heroku/php_service.rb +135 -0
- data/lib/shopify_cli/services/app/deploy/heroku/rails_service.rb +120 -0
- data/lib/shopify_cli/services/app/open_service.rb +19 -0
- data/lib/shopify_cli/services/app/serve/node_service.rb +42 -0
- data/lib/shopify_cli/services/app/serve/php_service.rb +46 -0
- data/lib/shopify_cli/services/app/serve/rails_service.rb +48 -0
- data/lib/shopify_cli/services/app/tunnel/auth_service.rb +21 -0
- data/lib/shopify_cli/services/app/tunnel/start_service.rb +20 -0
- data/lib/shopify_cli/services/app/tunnel/stop_service.rb +20 -0
- data/lib/shopify_cli/services.rb +31 -0
- data/lib/shopify_cli/tasks/ensure_authenticated.rb +9 -3
- data/lib/shopify_cli/theme/dev_server/local_assets.rb +1 -1
- data/lib/shopify_cli/theme/dev_server.rb +35 -17
- data/lib/shopify_cli/theme/syncer/error_reporter.rb +45 -0
- data/lib/shopify_cli/theme/syncer/operation.rb +56 -0
- data/lib/shopify_cli/theme/syncer/standard_reporter.rb +32 -0
- data/lib/shopify_cli/theme/syncer.rb +40 -39
- data/lib/shopify_cli/theme/theme.rb +31 -19
- data/lib/shopify_cli/tunnel.rb +25 -22
- data/lib/shopify_cli/version.rb +1 -1
- data/lib/shopify_cli.rb +1 -2
- data/shopify-cli.gemspec +2 -6
- data/shopify-dev +18 -0
- data/utilities/constants.rb +7 -0
- data/utilities/docker/container.rb +30 -2
- data/utilities/docker.rb +3 -2
- data/utilities/utilities.rb +1 -0
- data/vendor/deps/cli-kit/lib/cli/kit/system.rb +1 -1
- metadata +64 -54
- data/docs/_config.yml +0 -2
- data/docs/app/node/commands/index.md +0 -4
- data/docs/app/node/index.md +0 -4
- data/docs/app/rails/commands/index.md +0 -4
- data/docs/app/rails/index.md +0 -4
- data/docs/core/index.md +0 -4
- data/docs/getting-started/index.md +0 -4
- data/docs/getting-started/install/index.md +0 -4
- data/docs/getting-started/migrate/index.md +0 -4
- data/docs/getting-started/uninstall/index.md +0 -4
- data/docs/getting-started/upgrade/index.md +0 -4
- data/docs/help/start-app/index.md +0 -4
- data/docs/index.md +0 -4
- data/ext/shopify-cli/extconf.rb +0 -60
- data/install.sh +0 -7
- data/lib/project_types/extension/tasks/converters/server_config_converter.rb +0 -31
- data/lib/project_types/extension/tasks/load_server_config.rb +0 -23
- data/lib/project_types/node/commands/connect.rb +0 -21
- data/lib/project_types/node/commands/create.rb +0 -125
- data/lib/project_types/node/commands/deploy/heroku.rb +0 -96
- data/lib/project_types/node/commands/deploy.rb +0 -32
- data/lib/project_types/node/commands/generate.rb +0 -22
- data/lib/project_types/node/commands/open.rb +0 -18
- data/lib/project_types/node/commands/serve.rb +0 -45
- data/lib/project_types/node/commands/tunnel.rb +0 -41
- data/lib/project_types/php/commands/connect.rb +0 -19
- data/lib/project_types/php/commands/create.rb +0 -143
- data/lib/project_types/php/commands/deploy/heroku.rb +0 -129
- data/lib/project_types/php/commands/deploy.rb +0 -32
- data/lib/project_types/php/commands/open.rb +0 -16
- data/lib/project_types/php/commands/serve.rb +0 -48
- data/lib/project_types/php/commands/tunnel.rb +0 -37
- data/lib/project_types/rails/commands/connect.rb +0 -21
- data/lib/project_types/rails/commands/deploy/heroku.rb +0 -115
- data/lib/project_types/rails/commands/deploy.rb +0 -32
- data/lib/project_types/rails/commands/generate/webhook.rb +0 -42
- data/lib/project_types/rails/commands/generate.rb +0 -60
- data/lib/project_types/rails/commands/open.rb +0 -18
- data/lib/project_types/rails/commands/serve.rb +0 -51
- data/lib/project_types/rails/commands/tunnel.rb +0 -41
- data/lib/project_types/script/graphql/app_script_update_or_create.graphql +0 -0
- data/lib/project_types/script/tasks/ensure_env.rb +0 -106
- data/lib/shopify_cli/sub_command.rb +0 -17
- data/shopify.fish +0 -12
- data/shopify.sh +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.
|
95
|
+
version: 1.8.0
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 1.
|
102
|
+
version: 1.8.0
|
103
103
|
description: |
|
104
104
|
Shopify CLI helps you build Shopify apps faster. It quickly scaffolds Node.js
|
105
105
|
and Ruby on Rails embedded apps. It also automates many common tasks in the
|
@@ -107,11 +107,12 @@ description: |
|
|
107
107
|
and webhooks.
|
108
108
|
email:
|
109
109
|
- dev-tools-education@shopify.com
|
110
|
-
executables:
|
111
|
-
|
112
|
-
|
110
|
+
executables:
|
111
|
+
- shopify
|
112
|
+
extensions: []
|
113
113
|
extra_rdoc_files: []
|
114
114
|
files:
|
115
|
+
- ".devcontainer.json"
|
115
116
|
- ".github/CODEOWNERS"
|
116
117
|
- ".github/CODE_OF_CONDUCT.md"
|
117
118
|
- ".github/CONTRIBUTING.md"
|
@@ -127,9 +128,11 @@ files:
|
|
127
128
|
- ".ruby-version"
|
128
129
|
- ".tmp/.gitkeep"
|
129
130
|
- ".tmp/sv/.gitkeep"
|
131
|
+
- ".vscode/extensions.json"
|
132
|
+
- ".vscode/settings.json"
|
130
133
|
- CHANGELOG.md
|
131
134
|
- CONTRIBUTING.md
|
132
|
-
-
|
135
|
+
- Codespace.dockerfile
|
133
136
|
- Gemfile
|
134
137
|
- Gemfile.lock
|
135
138
|
- LICENSE
|
@@ -137,29 +140,21 @@ files:
|
|
137
140
|
- RELEASING.md
|
138
141
|
- Rakefile
|
139
142
|
- SECURITY.md
|
140
|
-
-
|
143
|
+
- Tests.dockerfile
|
144
|
+
- assets/logo.png
|
141
145
|
- bin/console
|
142
146
|
- bin/load_shopify.rb
|
143
147
|
- bin/shopify
|
144
148
|
- dev.yml
|
145
|
-
- docs/
|
146
|
-
- docs/
|
147
|
-
- docs/
|
148
|
-
- docs/
|
149
|
-
-
|
150
|
-
-
|
151
|
-
- docs/getting-started/index.md
|
152
|
-
- docs/getting-started/install/index.md
|
153
|
-
- docs/getting-started/migrate/index.md
|
154
|
-
- docs/getting-started/uninstall/index.md
|
155
|
-
- docs/getting-started/upgrade/index.md
|
156
|
-
- docs/help/start-app/index.md
|
157
|
-
- docs/index.md
|
158
|
-
- ext/shopify-cli/extconf.rb
|
149
|
+
- docs/README.md
|
150
|
+
- docs/contributors/testing.md
|
151
|
+
- docs/users/installation.md
|
152
|
+
- docs/users/migrate-from-themekit.md
|
153
|
+
- ext/javy/javy.rb
|
154
|
+
- ext/javy/version
|
159
155
|
- ext/shopify-extensions/extconf.rb
|
160
156
|
- ext/shopify-extensions/shopify_extensions.rb
|
161
157
|
- ext/shopify-extensions/version
|
162
|
-
- install.sh
|
163
158
|
- lib/docgen/class_template.md.erb
|
164
159
|
- lib/docgen/index_template.md.erb
|
165
160
|
- lib/docgen/markdown.rb
|
@@ -223,10 +218,12 @@ files:
|
|
223
218
|
- lib/project_types/extension/models/npm_package.rb
|
224
219
|
- lib/project_types/extension/models/product.rb
|
225
220
|
- lib/project_types/extension/models/registration.rb
|
221
|
+
- lib/project_types/extension/models/server_config/app.rb
|
226
222
|
- lib/project_types/extension/models/server_config/base.rb
|
227
223
|
- lib/project_types/extension/models/server_config/development.rb
|
228
224
|
- lib/project_types/extension/models/server_config/development_entries.rb
|
229
225
|
- lib/project_types/extension/models/server_config/development_renderer.rb
|
226
|
+
- lib/project_types/extension/models/server_config/development_resource.rb
|
230
227
|
- lib/project_types/extension/models/server_config/extension.rb
|
231
228
|
- lib/project_types/extension/models/server_config/root.rb
|
232
229
|
- lib/project_types/extension/models/server_config/user.rb
|
@@ -241,70 +238,54 @@ files:
|
|
241
238
|
- lib/project_types/extension/tasks/choose_next_available_port.rb
|
242
239
|
- lib/project_types/extension/tasks/configure_features.rb
|
243
240
|
- lib/project_types/extension/tasks/configure_options.rb
|
241
|
+
- lib/project_types/extension/tasks/convert_server_config.rb
|
244
242
|
- lib/project_types/extension/tasks/converters/app_converter.rb
|
245
243
|
- lib/project_types/extension/tasks/converters/product_converter.rb
|
246
244
|
- lib/project_types/extension/tasks/converters/registration_converter.rb
|
247
|
-
- lib/project_types/extension/tasks/converters/server_config_converter.rb
|
248
245
|
- lib/project_types/extension/tasks/converters/validation_error_converter.rb
|
249
246
|
- lib/project_types/extension/tasks/converters/version_converter.rb
|
250
247
|
- lib/project_types/extension/tasks/create_extension.rb
|
248
|
+
- lib/project_types/extension/tasks/ensure_resource_url.rb
|
251
249
|
- lib/project_types/extension/tasks/fetch_specifications.rb
|
252
250
|
- lib/project_types/extension/tasks/find_npm_packages.rb
|
251
|
+
- lib/project_types/extension/tasks/find_package_from_json.rb
|
253
252
|
- lib/project_types/extension/tasks/get_app.rb
|
254
253
|
- lib/project_types/extension/tasks/get_apps.rb
|
255
254
|
- lib/project_types/extension/tasks/get_extensions.rb
|
256
255
|
- lib/project_types/extension/tasks/get_product.rb
|
257
|
-
- lib/project_types/extension/tasks/
|
256
|
+
- lib/project_types/extension/tasks/merge_server_config.rb
|
258
257
|
- lib/project_types/extension/tasks/run_extension_command.rb
|
259
258
|
- lib/project_types/extension/tasks/update_draft.rb
|
260
259
|
- lib/project_types/extension/tasks/user_errors.rb
|
261
260
|
- lib/project_types/node/cli.rb
|
262
|
-
- lib/project_types/node/commands/connect.rb
|
263
|
-
- lib/project_types/node/commands/create.rb
|
264
|
-
- lib/project_types/node/commands/deploy.rb
|
265
|
-
- lib/project_types/node/commands/deploy/heroku.rb
|
266
|
-
- lib/project_types/node/commands/generate.rb
|
267
|
-
- lib/project_types/node/commands/open.rb
|
268
|
-
- lib/project_types/node/commands/serve.rb
|
269
|
-
- lib/project_types/node/commands/tunnel.rb
|
270
261
|
- lib/project_types/node/forms/create.rb
|
271
262
|
- lib/project_types/node/messages/messages.rb
|
272
263
|
- lib/project_types/php/cli.rb
|
273
|
-
- lib/project_types/php/commands/connect.rb
|
274
|
-
- lib/project_types/php/commands/create.rb
|
275
|
-
- lib/project_types/php/commands/deploy.rb
|
276
|
-
- lib/project_types/php/commands/deploy/heroku.rb
|
277
|
-
- lib/project_types/php/commands/open.rb
|
278
|
-
- lib/project_types/php/commands/serve.rb
|
279
|
-
- lib/project_types/php/commands/tunnel.rb
|
280
264
|
- lib/project_types/php/forms/create.rb
|
281
265
|
- lib/project_types/php/messages/messages.rb
|
282
266
|
- lib/project_types/rails/cli.rb
|
283
|
-
- lib/project_types/rails/commands/connect.rb
|
284
267
|
- lib/project_types/rails/commands/create.rb
|
285
|
-
- lib/project_types/rails/commands/deploy.rb
|
286
|
-
- lib/project_types/rails/commands/deploy/heroku.rb
|
287
|
-
- lib/project_types/rails/commands/generate.rb
|
288
|
-
- lib/project_types/rails/commands/generate/webhook.rb
|
289
|
-
- lib/project_types/rails/commands/open.rb
|
290
|
-
- lib/project_types/rails/commands/serve.rb
|
291
|
-
- lib/project_types/rails/commands/tunnel.rb
|
292
268
|
- lib/project_types/rails/forms/create.rb
|
293
269
|
- lib/project_types/rails/gem.rb
|
294
270
|
- lib/project_types/rails/messages/messages.rb
|
295
271
|
- lib/project_types/rails/ruby.rb
|
296
272
|
- lib/project_types/script/cli.rb
|
297
273
|
- lib/project_types/script/commands/create.rb
|
274
|
+
- lib/project_types/script/commands/javy.rb
|
298
275
|
- lib/project_types/script/commands/push.rb
|
299
276
|
- lib/project_types/script/config/extension_points.yml
|
300
277
|
- lib/project_types/script/errors.rb
|
278
|
+
- lib/project_types/script/forms/ask_app.rb
|
279
|
+
- lib/project_types/script/forms/ask_org.rb
|
280
|
+
- lib/project_types/script/forms/ask_script_uuid.rb
|
301
281
|
- lib/project_types/script/forms/create.rb
|
282
|
+
- lib/project_types/script/forms/run_against_shopify_org.rb
|
302
283
|
- lib/project_types/script/graphql/app_script_set.graphql
|
303
|
-
- lib/project_types/script/graphql/app_script_update_or_create.graphql
|
304
284
|
- lib/project_types/script/graphql/get_app_scripts.graphql
|
305
285
|
- lib/project_types/script/graphql/module_upload_url_generate.graphql
|
306
286
|
- lib/project_types/script/graphql/script_service_proxy.graphql
|
307
287
|
- lib/project_types/script/layers/application/build_script.rb
|
288
|
+
- lib/project_types/script/layers/application/connect_app.rb
|
308
289
|
- lib/project_types/script/layers/application/create_script.rb
|
309
290
|
- lib/project_types/script/layers/application/extension_points.rb
|
310
291
|
- lib/project_types/script/layers/application/project_dependencies.rb
|
@@ -332,7 +313,6 @@ files:
|
|
332
313
|
- lib/project_types/script/layers/infrastructure/script_uploader.rb
|
333
314
|
- lib/project_types/script/layers/infrastructure/service_locator.rb
|
334
315
|
- lib/project_types/script/messages/messages.rb
|
335
|
-
- lib/project_types/script/tasks/ensure_env.rb
|
336
316
|
- lib/project_types/script/ui/error_handler.rb
|
337
317
|
- lib/project_types/script/ui/printing_spinner.rb
|
338
318
|
- lib/project_types/script/ui/strict_spinner.rb
|
@@ -359,9 +339,21 @@ files:
|
|
359
339
|
- lib/shopify_cli/app_type_detector.rb
|
360
340
|
- lib/shopify_cli/command.rb
|
361
341
|
- lib/shopify_cli/command/app_sub_command.rb
|
342
|
+
- lib/shopify_cli/command/project_command.rb
|
343
|
+
- lib/shopify_cli/command/sub_command.rb
|
362
344
|
- lib/shopify_cli/command_options.rb
|
363
345
|
- lib/shopify_cli/command_options/command_serve_options.rb
|
364
346
|
- lib/shopify_cli/commands.rb
|
347
|
+
- lib/shopify_cli/commands/app.rb
|
348
|
+
- lib/shopify_cli/commands/app/connect.rb
|
349
|
+
- lib/shopify_cli/commands/app/create.rb
|
350
|
+
- lib/shopify_cli/commands/app/create/node.rb
|
351
|
+
- lib/shopify_cli/commands/app/create/php.rb
|
352
|
+
- lib/shopify_cli/commands/app/create/rails.rb
|
353
|
+
- lib/shopify_cli/commands/app/deploy.rb
|
354
|
+
- lib/shopify_cli/commands/app/open.rb
|
355
|
+
- lib/shopify_cli/commands/app/serve.rb
|
356
|
+
- lib/shopify_cli/commands/app/tunnel.rb
|
365
357
|
- lib/shopify_cli/commands/config.rb
|
366
358
|
- lib/shopify_cli/commands/help.rb
|
367
359
|
- lib/shopify_cli/commands/login.rb
|
@@ -391,6 +383,8 @@ files:
|
|
391
383
|
- lib/shopify_cli/feature.rb
|
392
384
|
- lib/shopify_cli/form.rb
|
393
385
|
- lib/shopify_cli/git.rb
|
386
|
+
- lib/shopify_cli/github.rb
|
387
|
+
- lib/shopify_cli/github/issue_url_generator.rb
|
394
388
|
- lib/shopify_cli/helpers.rb
|
395
389
|
- lib/shopify_cli/helpers/haikunator.rb
|
396
390
|
- lib/shopify_cli/heroku.rb
|
@@ -421,10 +415,23 @@ files:
|
|
421
415
|
- lib/shopify_cli/resources/env_file.rb
|
422
416
|
- lib/shopify_cli/result.rb
|
423
417
|
- lib/shopify_cli/services.rb
|
418
|
+
- lib/shopify_cli/services/app/connect_service.rb
|
419
|
+
- lib/shopify_cli/services/app/create/node_service.rb
|
420
|
+
- lib/shopify_cli/services/app/create/php_service.rb
|
421
|
+
- lib/shopify_cli/services/app/create/rails_service.rb
|
422
|
+
- lib/shopify_cli/services/app/deploy/heroku/node_service.rb
|
423
|
+
- lib/shopify_cli/services/app/deploy/heroku/php_service.rb
|
424
|
+
- lib/shopify_cli/services/app/deploy/heroku/rails_service.rb
|
425
|
+
- lib/shopify_cli/services/app/open_service.rb
|
426
|
+
- lib/shopify_cli/services/app/serve/node_service.rb
|
427
|
+
- lib/shopify_cli/services/app/serve/php_service.rb
|
428
|
+
- lib/shopify_cli/services/app/serve/rails_service.rb
|
429
|
+
- lib/shopify_cli/services/app/tunnel/auth_service.rb
|
430
|
+
- lib/shopify_cli/services/app/tunnel/start_service.rb
|
431
|
+
- lib/shopify_cli/services/app/tunnel/stop_service.rb
|
424
432
|
- lib/shopify_cli/services/base_service.rb
|
425
433
|
- lib/shopify_cli/services/reporting_service.rb
|
426
434
|
- lib/shopify_cli/shopifolk.rb
|
427
|
-
- lib/shopify_cli/sub_command.rb
|
428
435
|
- lib/shopify_cli/task.rb
|
429
436
|
- lib/shopify_cli/tasks.rb
|
430
437
|
- lib/shopify_cli/tasks/confirm_store.rb
|
@@ -451,13 +458,16 @@ files:
|
|
451
458
|
- lib/shopify_cli/theme/ignore_filter.rb
|
452
459
|
- lib/shopify_cli/theme/mime_type.rb
|
453
460
|
- lib/shopify_cli/theme/syncer.rb
|
461
|
+
- lib/shopify_cli/theme/syncer/error_reporter.rb
|
462
|
+
- lib/shopify_cli/theme/syncer/operation.rb
|
463
|
+
- lib/shopify_cli/theme/syncer/standard_reporter.rb
|
454
464
|
- lib/shopify_cli/theme/theme.rb
|
455
465
|
- lib/shopify_cli/transform_data_structure.rb
|
456
466
|
- lib/shopify_cli/tunnel.rb
|
457
467
|
- lib/shopify_cli/version.rb
|
458
468
|
- shopify-cli.gemspec
|
459
|
-
- shopify
|
460
|
-
-
|
469
|
+
- shopify-dev
|
470
|
+
- utilities/constants.rb
|
461
471
|
- utilities/docker.rb
|
462
472
|
- utilities/docker/container.rb
|
463
473
|
- utilities/utilities.rb
|
data/docs/_config.yml
DELETED
data/docs/app/node/index.md
DELETED
data/docs/app/rails/index.md
DELETED
data/docs/core/index.md
DELETED
data/docs/index.md
DELETED
data/ext/shopify-cli/extconf.rb
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
require "rbconfig"
|
2
|
-
require "fileutils"
|
3
|
-
require "date"
|
4
|
-
|
5
|
-
gem = File.expand_path("../../../", __FILE__)
|
6
|
-
exe = File.join(gem, "bin", "shopify")
|
7
|
-
|
8
|
-
# `--skip-cli-build` will be passed from the brew `shopify-cli.rb` formula, so
|
9
|
-
# as to prevent this extension builder doing the script and sym-link creation;
|
10
|
-
# the brew install process takes care of these itself - see
|
11
|
-
# https://github.com/Shopify/homebrew-shopify/shopify-cli.rb
|
12
|
-
if ARGV && ARGV[0]&.match(/skip-cli-build/)
|
13
|
-
makefile_content = <<~MAKEFILE
|
14
|
-
.PHONY: clean
|
15
|
-
|
16
|
-
clean: ;
|
17
|
-
|
18
|
-
install: ;
|
19
|
-
MAKEFILE
|
20
|
-
elsif RUBY_PLATFORM.match(/mswin|mingw|cygwin/)
|
21
|
-
bat_path = File.dirname(RbConfig.ruby)
|
22
|
-
bat = "#{bat_path}\\shopify.bat"
|
23
|
-
|
24
|
-
script_content = "#{RbConfig.ruby} -I '#{gem}' '#{exe}' %*"
|
25
|
-
|
26
|
-
FileUtils.mkdir_p(bat_path)
|
27
|
-
makefile_content = <<~MAKEFILE
|
28
|
-
.PHONY: clean install
|
29
|
-
|
30
|
-
clean:
|
31
|
-
\t rm -f "#{bat}"
|
32
|
-
|
33
|
-
install: clean
|
34
|
-
\t echo "@ECHO OFF"> "#{bat}"
|
35
|
-
\t echo "#{script_content}">> "#{bat}"
|
36
|
-
MAKEFILE
|
37
|
-
else
|
38
|
-
script = exe + ".sh"
|
39
|
-
symlink = "/usr/local/bin/shopify"
|
40
|
-
|
41
|
-
script_content = <<~SCRIPT
|
42
|
-
#!/usr/bin/env bash
|
43
|
-
#{RbConfig.ruby} -I #{gem} #{exe} $@
|
44
|
-
SCRIPT
|
45
|
-
|
46
|
-
File.write(script, script_content)
|
47
|
-
FileUtils.chmod("+x", script)
|
48
|
-
|
49
|
-
makefile_content = <<~MAKEFILE
|
50
|
-
.PHONY: clean install
|
51
|
-
|
52
|
-
clean:
|
53
|
-
\t@sudo rm -f #{symlink}
|
54
|
-
|
55
|
-
install: clean
|
56
|
-
\t@sudo ln -s #{script} #{symlink}
|
57
|
-
MAKEFILE
|
58
|
-
end
|
59
|
-
|
60
|
-
File.write("Makefile", makefile_content)
|
data/install.sh
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require "shopify_cli"
|
3
|
-
|
4
|
-
module Extension
|
5
|
-
module Tasks
|
6
|
-
module Converters
|
7
|
-
module ServerConfigConverter
|
8
|
-
def self.from_hash(hash, type)
|
9
|
-
context.abort(context.message("tasks.errors.parse_error")) if hash.nil?
|
10
|
-
|
11
|
-
project = ExtensionProject.current
|
12
|
-
|
13
|
-
extension = Models::ServerConfig::Extension.new(
|
14
|
-
uuid: project.registration_uuid,
|
15
|
-
type: type.upcase,
|
16
|
-
user: Models::ServerConfig::User.new,
|
17
|
-
development: Models::ServerConfig::Development.new(
|
18
|
-
build_dir: hash.dig("development", "build_dir"),
|
19
|
-
renderer: Models::ServerConfig::DevelopmentRenderer.find(type),
|
20
|
-
entries: Models::ServerConfig::DevelopmentEntries.new(
|
21
|
-
main: hash.dig("development", "entries", "main")
|
22
|
-
)
|
23
|
-
)
|
24
|
-
)
|
25
|
-
|
26
|
-
Models::ServerConfig::Root.new(extensions: [extension])
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require "shopify_cli"
|
3
|
-
require "yaml"
|
4
|
-
|
5
|
-
module Extension
|
6
|
-
module Tasks
|
7
|
-
class LoadServerConfig < ShopifyCLI::Task
|
8
|
-
include SmartProperties
|
9
|
-
|
10
|
-
class << self
|
11
|
-
def call(file_name:, type:)
|
12
|
-
config = YAML.load_file(file_name)
|
13
|
-
Tasks::Converters::ServerConfigConverter.from_hash(config, type)
|
14
|
-
rescue Psych::SyntaxError => e
|
15
|
-
raise(
|
16
|
-
ShopifyCLI::Abort,
|
17
|
-
ShopifyCLI::Context.message("core.yaml.error.invalid", file_name, e.message)
|
18
|
-
)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module Node
|
3
|
-
class Command
|
4
|
-
class Connect < ShopifyCLI::SubCommand
|
5
|
-
prerequisite_task ensure_project_type: :node
|
6
|
-
|
7
|
-
def call(*)
|
8
|
-
if ShopifyCLI::Project.has_current? && ShopifyCLI::Project.current.env
|
9
|
-
@ctx.puts(@ctx.message("node.connect.production_warning"))
|
10
|
-
end
|
11
|
-
|
12
|
-
app = ShopifyCLI::Connect.new(@ctx).default_connect("node")
|
13
|
-
@ctx.done(@ctx.message("node.connect.connected", app))
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.help
|
17
|
-
ShopifyCLI::Context.message("node.connect.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,125 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module Node
|
3
|
-
class Command
|
4
|
-
class Create < ShopifyCLI::SubCommand
|
5
|
-
prerequisite_task :ensure_authenticated
|
6
|
-
|
7
|
-
options do |parser, flags|
|
8
|
-
# backwards compatibility allow 'title' for now
|
9
|
-
parser.on("--title=TITLE") { |t| flags[:title] = t }
|
10
|
-
parser.on("--name=NAME") { |t| flags[:title] = t }
|
11
|
-
parser.on("--organization_id=ID") { |id| flags[:organization_id] = id }
|
12
|
-
parser.on("--organization-id=ID") { |id| flags[:organization_id] = id }
|
13
|
-
parser.on("--store=MYSHOPIFYDOMAIN") { |url| flags[:shop_domain] = url }
|
14
|
-
# backwards compatibility allow 'shop domain' for now
|
15
|
-
parser.on("--shop_domain=MYSHOPIFYDOMAIN") { |url| flags[:shop_domain] = url }
|
16
|
-
parser.on("--shop-domain=MYSHOPIFYDOMAIN") { |url| flags[:shop_domain] = url }
|
17
|
-
parser.on("--type=APPTYPE") { |type| flags[:type] = type }
|
18
|
-
parser.on("--verbose") { flags[:verbose] = true }
|
19
|
-
end
|
20
|
-
|
21
|
-
def call(args, _name)
|
22
|
-
form = Forms::Create.ask(@ctx, args, options.flags)
|
23
|
-
return @ctx.puts(self.class.help) if form.nil?
|
24
|
-
|
25
|
-
check_node
|
26
|
-
check_npm
|
27
|
-
build(form.name)
|
28
|
-
|
29
|
-
ShopifyCLI::Project.write(
|
30
|
-
@ctx,
|
31
|
-
project_type: "node",
|
32
|
-
organization_id: form.organization_id,
|
33
|
-
)
|
34
|
-
|
35
|
-
api_client = ShopifyCLI::Tasks::CreateApiClient.call(
|
36
|
-
@ctx,
|
37
|
-
org_id: form.organization_id,
|
38
|
-
title: form.title,
|
39
|
-
type: form.type,
|
40
|
-
)
|
41
|
-
|
42
|
-
ShopifyCLI::Resources::EnvFile.new(
|
43
|
-
api_key: api_client["apiKey"],
|
44
|
-
secret: api_client["apiSecretKeys"].first["secret"],
|
45
|
-
shop: form.shop_domain,
|
46
|
-
scopes: "write_products,write_customers,write_draft_orders",
|
47
|
-
).write(@ctx)
|
48
|
-
|
49
|
-
partners_url = ShopifyCLI::PartnersAPI.partners_url_for(form.organization_id, api_client["id"])
|
50
|
-
|
51
|
-
@ctx.puts(@ctx.message("apps.create.info.created", form.title, partners_url))
|
52
|
-
@ctx.puts(@ctx.message("apps.create.info.serve", form.name, ShopifyCLI::TOOL_NAME, "node"))
|
53
|
-
unless ShopifyCLI::Shopifolk.acting_as_shopify_organization?
|
54
|
-
@ctx.puts(@ctx.message("apps.create.info.install", partners_url, form.title))
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def self.help
|
59
|
-
ShopifyCLI::Context.message("node.create.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
|
60
|
-
end
|
61
|
-
|
62
|
-
private
|
63
|
-
|
64
|
-
def check_node
|
65
|
-
cmd_path = @ctx.which("node")
|
66
|
-
@ctx.abort(@ctx.message("node.create.error.node_required")) if cmd_path.nil?
|
67
|
-
|
68
|
-
version, stat = @ctx.capture2e("node", "-v")
|
69
|
-
@ctx.abort(@ctx.message("node.create.error.node_version_failure")) unless stat.success?
|
70
|
-
|
71
|
-
@ctx.done(@ctx.message("node.create.node_version", version))
|
72
|
-
end
|
73
|
-
|
74
|
-
def check_npm
|
75
|
-
cmd_path = @ctx.which("npm")
|
76
|
-
@ctx.abort(@ctx.message("node.create.error.npm_required")) if cmd_path.nil?
|
77
|
-
|
78
|
-
version, stat = @ctx.capture2e("npm", "-v")
|
79
|
-
@ctx.abort(@ctx.message("node.create.error.npm_version_failure")) unless stat.success?
|
80
|
-
|
81
|
-
@ctx.done(@ctx.message("node.create.npm_version", version))
|
82
|
-
end
|
83
|
-
|
84
|
-
def set_npm_config
|
85
|
-
# check available npmrc (either user or system) for production registry
|
86
|
-
registry, _ = @ctx.capture2("npm config get @shopify:registry")
|
87
|
-
return if registry.include?("https://registry.yarnpkg.com")
|
88
|
-
|
89
|
-
# available npmrc doesn't have production registry =>
|
90
|
-
# set a project-based .npmrc
|
91
|
-
@ctx.system(
|
92
|
-
"npm",
|
93
|
-
"--userconfig",
|
94
|
-
"./.npmrc",
|
95
|
-
"config",
|
96
|
-
"set",
|
97
|
-
"@shopify:registry",
|
98
|
-
"https://registry.yarnpkg.com",
|
99
|
-
chdir: @ctx.root
|
100
|
-
)
|
101
|
-
end
|
102
|
-
|
103
|
-
def build(name)
|
104
|
-
ShopifyCLI::Git.clone("https://github.com/Shopify/shopify-app-node.git", name)
|
105
|
-
|
106
|
-
@ctx.root = File.join(@ctx.root, name)
|
107
|
-
|
108
|
-
set_npm_config
|
109
|
-
ShopifyCLI::JsDeps.install(@ctx, !options.flags[:verbose].nil?)
|
110
|
-
|
111
|
-
begin
|
112
|
-
@ctx.rm_r(".git")
|
113
|
-
@ctx.rm_r(".github")
|
114
|
-
@ctx.rm(File.join("server", "handlers", "client.js"))
|
115
|
-
@ctx.rename(
|
116
|
-
File.join("server", "handlers", "client.cli.js"),
|
117
|
-
File.join("server", "handlers", "client.js")
|
118
|
-
)
|
119
|
-
rescue Errno::ENOENT => e
|
120
|
-
@ctx.debug(e)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|