[Themes] Remove Ruby invocation from the `app dev` command
WHY are these changes introduced?
Closes https://github.com/Shopify/develop-advanced-edits/issues/362
WHAT is this pull request doing?
- Remove
legacyflag fromapp devcommand - Delete
theme-app-extension.js(legacy implementation) - Update imports + tests
How to test your changes?
- Try running
app devwith the legacy flag. This should complain about a non-existent flag
Post-release steps
- https://github.com/Shopify/cli/pull/4593
- https://github.com/Shopify/cli/pull/4595
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
- [x] Existing analytics will cater for this addition
- [ ] PR includes analytics changes to measure impact
Checklist
- [x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [x] 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.8% (+0.29% πΌ) |
8551/11746 |
| π‘ | Branches | 69.75% (+0.66% πΌ) |
4199/6020 |
| π‘ | Functions | 71.81% (+0.04% πΌ) |
2209/3076 |
| π‘ | Lines | 73.13% (+0.32% πΌ) |
8094/11068 |
Show new covered files π£
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π’ | ... / function-upload-url-generate.ts |
100% | 100% | 100% | 100% |
| π’ | ... / active-app-release.ts |
100% | 100% | 100% | 100% |
| π’ | ... / app-version-by-id.ts |
100% | 100% | 100% | 100% |
| π’ | ... / app-versions.ts |
100% | 100% | 100% | 100% |
| π’ | ... / apps.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-asset-url.ts |
100% | 100% | 100% | 100% |
| π’ | ... / organization.ts |
100% | 100% | 100% | 100% |
| π’ | ... / release-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / specifications.ts |
100% | 100% | 100% | 100% |
| π’ | ... / user-info.ts |
100% | 100% | 100% | 100% |
| π’ | ... / authorize.ts |
100% | 75% | 100% | 100% |
| π΄ | ... / post-auth.ts |
44.12% | 0% | 0% | 45.45% |
| π΄ | ... / redirect-listener.ts |
14.75% | 0% | 33.33% | 15% |
Show files with reduced coverage π»
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π’ | ... / app.test-data.ts |
91.4% | 91.09% (-0.09% π») |
81.01% | 90.8% |
| π’ | ... / app.ts |
87.07% | 70.89% (-0.72% π») |
92% | 88.37% |
| π’ | ... / 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% π») |
| π’ | ... / app-context.ts |
100% | 87.5% (-1.97% π») |
100% | 100% |
| π’ | ... / deploy.ts |
87.18% | 85% (-2.5% π») |
87.5% | 89.19% |
| π’ | ... / generate.ts |
100% | 80% (-2.14% π») |
100% | 100% |
| π’ | ... / show.ts |
100% | 66.67% (-8.33% π») |
100% | 100% |
| π΄ | ... / extension.ts |
55.26% (-0.29% π») |
50% | 57.14% | 56.76% (-0.06% π») |
| π’ | ... / theme-extension-args.ts |
86.67% | 50% (-12.5% π») |
100% | 86.67% |
| π‘ | ... / 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% |
| π’ | ... / extension.ts |
91.4% (+0.09% πΌ) |
73.58% | 91.3% (-0.36% π») |
91.21% (+0.1% πΌ) |
| π΄ | ... / app-management-client.ts |
20.75% (-0.09% π») |
10.26% (+0.5% πΌ) |
22.58% (-0.25% π») |
19% (-0.09% π») |
| π΄ | ... / partners-client.ts |
26.87% (-0.2% π») |
40% | 18.18% (-0.34% π») |
26.56% (-0.21% π») |
| π’ | ... / session.ts |
81.01% (-1.99% π») |
72.32% (-0.41% π») |
92.86% | 80.67% (-2.09% π») |
| π’ | ... / ConcurrentOutput.tsx |
98.39% (-1.61% π») |
90.91% (-4.55% π») |
100% | 98.33% (-1.67% π») |
| π‘ | ... / fs.ts |
62.5% | 84.62% (-7.05% π») |
58.97% | 62.5% |
| π’ | ... / admin.ts |
82.76% (+1.51% πΌ) |
37.5% (-2.5% π») |
90% | 85.71% (+1.84% πΌ) |
Test suite run success
1947 tests passing in 876 suites.
Report generated by π§ͺjest coverage report action from e7d58bf060a13c4a28e1364ff5c2118cdb98c780
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.
/snapit
π«°β¨ Thanks @nickwesselman! 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 @nickwesselman! 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 @nickwesselman! 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.