-
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][Feature] Theme Dev Preview - Initialize the ThemeEnvironment #3841
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
Coverage report
Test suite run success1633 tests passing in 763 suites. Report generated by 🧪jest coverage report action from cd3689a |
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, @jamesmengo! This PR is in a great direction!
I've noticed that we have some Ruby-specific code we can skip, so I created this PR to share how we could do that and also included some other minor ideas. Please let me know what you think :)
Thanks again for this PR!
eedf2e3
to
d351340
Compare
- Upload Theme to Target Theme
3268eec
to
8ab646a
Compare
…LI2 specific logic
7698da0
to
cd3689a
Compare
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, @jamesmengo! 🚀
await startDevServer(developmentTheme, context, () => {}) | ||
|
||
// Then | ||
expect(uploadTheme).not.toHaveBeenCalled() |
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 this is going to change with #3833 but +1 for keeping it as is and updating in the following PR :)
WHY are these changes introduced?
WHAT is this pull request doing?
theme dev
with thedeveloper-preview
flag--theme-editor-sync
functionality. Passing the flag will, however, skip the uploadHow to test your changes?
pnpm shopify theme dev --path=<PATH_TO_THEME> --developer-preview
Code.-.theme.src_cli_utilities_theme-environment.ts.CLI.Workspace.mp4