-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Themes] Remove Ruby invocation from the app dev
command
#4592
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
8e28ef9
to
cb7a9e7
Compare
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success1947 tests passing in 876 suites. Report generated by 🧪jest coverage report action from e7d58bf |
dd42c42
to
cbf552a
Compare
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
@@ -26,12 +26,15 @@ import {describe, test, expect, beforeEach, vi} from 'vitest' | |||
import {ensureAuthenticatedAdmin, ensureAuthenticatedStorefront} from '@shopify/cli-kit/node/session' | |||
import {Config} from '@oclif/core' | |||
import {getEnvironmentVariables} from '@shopify/cli-kit/node/environment' | |||
import {isStorefrontPasswordProtected} from '@shopify/theme' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these tests to assert that the process list that is built uses the TS
implementation coming from theme-app-extension-next
rather than the legacy implementation
@@ -22,7 +25,6 @@ interface HostThemeSetupOptions { | |||
storeFqdn: string | |||
theme?: string | |||
themeExtensionPort?: number | |||
developerPlatformClient: DeveloperPlatformClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
}, | ||
} | ||
} | ||
|
||
export const runThemeAppExtensionsServer: DevProcessFunction<ThemeAppExtensionServerOptions> = async ( | ||
_, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first arg is an object with {stdout, stderr, abortSignal}
- do we need to connect any of these?
ctrl+c
or q
both correctly terminate the process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe our final goal is to update the development server to accept stdout
and stderr
, so for app dev
, we can pass them — that will be addressed by this issue: https://github.com/Shopify/develop-advanced-edits/issues/366, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Just needed to confirm with the foundations team but we're good to go :)
cbf552a
to
40749eb
Compare
/snapit |
🫰✨ Thanks @nickwesselman! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/cli@0.0.0-snapshot-20241015155935
|
/snapit |
🫰✨ Thanks @nickwesselman! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/cli@0.0.0-snapshot-20241015182707
|
/snapit |
🫰✨ Thanks @nickwesselman! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/cli@0.0.0-snapshot-20241015183642
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, @jamesmengo! LGTM and works as expected as well :)
}, | ||
} | ||
} | ||
|
||
export const runThemeAppExtensionsServer: DevProcessFunction<ThemeAppExtensionServerOptions> = async ( | ||
_, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe our final goal is to update the development server to accept stdout
and stderr
, so for app dev
, we can pass them — that will be addressed by this issue: https://github.com/Shopify/develop-advanced-edits/issues/366, correct?
Rename theme-app-extension-next to theme-app-extension
WHY are these changes introduced?
Closes https://github.com/Shopify/develop-advanced-edits/issues/362
WHAT is this pull request doing?
legacy
flag fromapp dev
commandtheme-app-extension.js
(legacy implementation)How to test your changes?
app dev
with the legacy flag. This should complain about a non-existent flagPost-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist