cli icon indicating copy to clipboard operation
cli copied to clipboard

[Themes] Remove Ruby invocation from the `app dev` command

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

WHY are these changes introduced?

Closes https://github.com/Shopify/develop-advanced-edits/issues/362

WHAT is this pull request doing?

  • Remove legacy flag from app dev command
  • Delete theme-app-extension.js (legacy implementation)
  • Update imports + tests

How to test your changes?

  • Try running app dev with 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

jamesmengo avatar Oct 07 '24 17: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 07 '24 17:10 github-actions[bot]

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

github-actions[bot] avatar Oct 07 '24 22: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 08 '24 00:10 github-actions[bot]

/snapit

nickwesselman avatar Oct 15 '24 15:10 nickwesselman

🫰✨ 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 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 15 '24 16:10 github-actions[bot]

/snapit

nickwesselman avatar Oct 15 '24 18:10 nickwesselman

🫰✨ 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 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 15 '24 18:10 github-actions[bot]

/snapit

nickwesselman avatar Oct 15 '24 18:10 nickwesselman

🫰✨ 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 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 15 '24 18:10 github-actions[bot]