cli icon indicating copy to clipboard operation
cli copied to clipboard

[Themes] Remove Ruby from `theme push` command

Open jamesmengo opened this issue 1 year ago β€’ 9 comments

WHY are these changes introduced?

Fixes https://github.com/Shopify/develop-advanced-edits/issues/352

WHAT is this pull request doing?

  • Removes
  • Removes Ruby invocation for the theme push command

How to test your changes?

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • [ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • [ ] Existing analytics will cater for this addition
  • [ ] PR includes analytics changes to measure impact

Checklist

  • [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • [ ] I've considered possible documentation changes

jamesmengo avatar Oct 01 '24 21:10 jamesmengo

Thanks for your contribution!

Depending on what you are working on, you may want to request a review from a Shopify team:

  • Themes: @shopify/advanced-edits
  • UI extensions: @shopify/ui-extensions-cli
    • Checkout UI extensions: @shopify/checkout-ui-extensions-api-stewardship
  • Hydrogen: @shopify/hydrogen
  • Other: @shopify/app-inner-loop

github-actions[bot] avatar Oct 01 '24 21:10 github-actions[bot]

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
72.6% (-0.07% πŸ”»)
8520/11735
🟑 Branches
69.55% (-0.1% πŸ”»)
4177/6006
🟑 Functions
71.61% (-0.11% πŸ”»)
2205/3079
🟑 Lines
72.92% (-0.09% πŸ”»)
8062/11056
Show new covered files 🐣
St.:grey_question:
File Statements Branches Functions Lines
🟒
... / function-upload-url-generate.ts
100% 100% 100% 100%
Show files with reduced coverage πŸ”»
St.:grey_question:
File Statements Branches Functions Lines
🟒
... / app.test-data.ts
91.4% (-0.45% πŸ”»)
91.09%
81.01% (-1.04% πŸ”»)
90.8% (-0.47% πŸ”»)
🟒
... / app.ts
87.07%
70.89% (-0.72% πŸ”»)
92% 88.37%
🟒
... / loader.ts
94.35% (-0.03% πŸ”»)
86.21% (+0.41% πŸ”Ό)
98% (-0.02% πŸ”»)
95.38% (-0.03% πŸ”»)
🟒
... / specification.ts
93.1% (-1.81% πŸ”»)
90.48%
87.5% (-0.5% πŸ”»)
92% (-2.12% πŸ”»)
🟒
... / function.ts
86.36% (-0.59% πŸ”»)
86.36% 83.33%
86.36% (-0.59% πŸ”»)
🟒
... / context.ts
91.7% (-0.03% πŸ”»)
87.28% 88.57%
92.65% (-0.03% πŸ”»)
πŸ”΄
... / dev.ts
9.65% (-10.35% πŸ”»)
1.56% (-13.36% πŸ”»)
15.79% (-8.6% πŸ”»)
9.52% (-11.35% πŸ”»)
🟑
... / local-storage.ts
69.44% (-1.61% πŸ”»)
57.14% (-5.36% πŸ”»)
72.73%
67.65% (-1.8% πŸ”»)
🟒
... / link.ts
96.51% (-0.08% πŸ”»)
91.94% (-0.25% πŸ”»)
100%
96.39% (-0.09% πŸ”»)
🟑
... / update-extension.ts
64.86% (-5.14% πŸ”»)
54.55% (-3.79% πŸ”»)
60%
68.75% (-5.54% πŸ”»)
🟑
... / build.ts
74.49%
59.09% (-2.27% πŸ”»)
75.76% 72.22%
πŸ”΄
... / app-management-client.ts
20.75% (-0.09% πŸ”»)
10.26%
22.58% (-0.25% πŸ”»)
19% (-0.09% πŸ”»)
πŸ”΄
... / partners-client.ts
26.87% (-0.2% πŸ”»)
40%
18.18% (-0.34% πŸ”»)
26.56% (-0.21% πŸ”»)

Test suite run success

1938 tests passing in 873 suites.

Report generated by πŸ§ͺjest coverage report action from f71afcb2bf72ecca11c780e3d022ba141b3d2ed2

github-actions[bot] avatar Oct 01 '24 21:10 github-actions[bot]

As I can see from the docs the ruby dependency is not required anymore but this changes are still in draft. Was that intended?

And it looks like ruby is actually still required (version 3.67.0): image

Is this true?

50bbx avatar Oct 03 '24 08:10 50bbx

@50bbx You should be able to run the TS implementation now without the need to install Ruby (depending on the version)

Could you share which version you're on + which command you're running? The --legacy or password flag may be configured in your environment variables, which is causing it to default to Ruby.

jamesmengo avatar Oct 03 '24 15:10 jamesmengo

/snapit

jamesmengo avatar Oct 03 '24 19:10 jamesmengo

🫰✨ Thanks @jamesmengo! Your snapshot has been published to npm.

Test the snapshot by intalling your package globally:

pnpm i -g @shopify/[email protected]

After installing, validate the version by running just shopify in your terminal If the versions don't match, you might have multiple global instances installed. Use which shopify to find out which one you are running and uninstall it.

github-actions[bot] avatar Oct 03 '24 19:10 github-actions[bot]

/snapit

jamesmengo avatar Oct 03 '24 21:10 jamesmengo

🫰✨ Thanks @jamesmengo! Your snapshot has been published to npm.

Test the snapshot by intalling your package globally:

pnpm i -g @shopify/[email protected]

After installing, validate the version by running just shopify in your terminal If the versions don't match, you might have multiple global instances installed. Use which shopify to find out which one you are running and uninstall it.

github-actions[bot] avatar Oct 03 '24 21:10 github-actions[bot]

We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

github-actions[bot] avatar Oct 04 '24 20:10 github-actions[bot]