[Themes] Remove Ruby from `theme push` command
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 pushcommand
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
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
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
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):
Is this true?
@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.
/snapit
π«°β¨ 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
shopifyin your terminal If the versions don't match, you might have multiple global instances installed. Usewhich shopifyto find out which one you are running and uninstall it.
/snapit
π«°β¨ 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
shopifyin your terminal If the versions don't match, you might have multiple global instances installed. Usewhich shopifyto find out which one you are running and uninstall it.
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.