-
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
Download and use Javy plugin when building JS functions #4831
Merged
+130
−28
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1c9d749
Download and use Javy plugin
jeffcharles ef5ac66
Restore eslint-disable the formatter removed
jeffcharles 1f20e46
Update to Javy v4.0.0
jeffcharles a75e4ce
Merge branch 'main' into jc.javy-plugin
jeffcharles 6d0fa5c
`isInstalled` -> `isDownloaded`
jeffcharles 96a5856
Add comment about plugin version
jeffcharles fa2656e
Use plugin version that matches function-runner's
jeffcharles 32b75e2
Merge branch 'main' into jc.javy-plugin
jeffcharles be45523
Merge branch 'main' into jc.javy-plugin
jeffcharles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/app': patch | ||
--- | ||
|
||
Update Javy invocation to use Javy plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should part of the version identifier here match the expected version? Or rather, some kind of "minimum version"
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.
There isn't really a concept of a minimum version for this. The version should generally be whatever the latest release of Javy is until we switch to the Shopify Functions plugin. But it shouldn't be set to the latest version if there are breaking changes in the latest version until the Shopify CLI code has been updated to not break when using that version. So essentially, the version should be whatever is set in the
binaries.ts
file.I opted to go with a check on the format of the version rather than the version itself since the format of a version should be constant over time whereas the version should change frequently. If you have to update the test every time the version changes, it's arguably more likely the test won't catch an incorrect change since it'll just be updated to whatever is in
binaries.ts
.