-
Notifications
You must be signed in to change notification settings - Fork 431
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
feat(codegen): add groq finder methods. #5980
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
95449ab
to
aaa72e0
Compare
Full Report@sanity/codegen
@sanity/migrate
sanity
@sanity/diff
@sanity/block-tools
@sanity/types
sanity/desk
@sanity/portable-text-editor
@sanity/mutator
@sanity/cli
sanity/structure
@sanity/util/concurrency-limiter
@sanity/util/legacyDateFormat
@sanity/schema/_internal
@sanity/util/paths
sanity/router
@sanity/schema
sanity/cli
@sanity/vision
@sanity/util/fs
sanity/_internal
@sanity/util/client
@sanity/util/createSafeJsonParser
sanity/_internalBrowser
@sanity/util/content
|
Component Testing Report Updated Mar 19, 2024 3:10 PM (UTC)
|
aaa72e0
to
2715130
Compare
eebcae8
to
e133519
Compare
2715130
to
dff8b1b
Compare
e133519
to
f222a5c
Compare
dff8b1b
to
030c196
Compare
f222a5c
to
16f66a4
Compare
030c196
to
09ffc07
Compare
16f66a4
to
3d97029
Compare
3d97029
to
2f8abf0
Compare
09ffc07
to
3ebeed1
Compare
2f8abf0
to
c245d16
Compare
13e2dc1
to
ebb4619
Compare
150e40e
to
c15fbbd
Compare
) | ||
} | ||
|
||
function resolveClass({ |
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.
Did I remember you saying you removed support for classes? Is this the right code?
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.
Ah, great catch! forgot this one 🙃
ebb4619
to
6a7b5b0
Compare
c15fbbd
to
0d3d984
Compare
6a7b5b0
to
f221971
Compare
0d3d984
to
2a71264
Compare
f221971
to
f6fc884
Compare
2a71264
to
0d83227
Compare
Adds methods that parses a js/ts source file and returns all groq queries. co-authored-by: Tonina Zhelyazkova <[email protected]>
0d83227
to
fbab4df
Compare
Description
This PR adds babel runtime capabilities to scan a given source file for groq queries.
It checks for GROQ tagged template literal that's assigned to a variable, and tries to extract the value. It tries to follow variable references through resolving file local variables, but also imports/exports.
What to review
Testing
We've added the tests for the most expected code paths, but more suggestions are also welcome.
We don't test the custom resolver now, as it's deemed best effort...
Notes for release
N/A - No notes needed.