-
Notifications
You must be signed in to change notification settings - Fork 275
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
Discussion about developer experience #77
Comments
a personal scenario: |
Yes, I agree this should be better dealt with. Possibly with an editor extension that checks whether the Nexus server is running? Ping @Weakky to see if you've had any thoughts around this with yoga2. |
Had a similar issue on TLDR: The user is complaining that he's forced to start his server before being able to build it.
Apart from these hints, I could not come up with a better solution til now 😕 |
I recommend running your normal development server in transpile-only mode via the -T flag to ts-node or similar ( Then have a separate process which actually is checking the types. Usually I'll do this as part of CI rather than locally, but you could come up with a script to do this locally as well. Maybe it's worth setting up some gulp scripts that set this sort of thing up out of the box? |
using probably most of the possible solutions make more sense to be in yoga2 given how invasive they can be like inserting inline comments when some common errors are found using AST manipulation so that it can be editor agnostic |
During today's OpenSourceSaturday meetup in Milan, when demoing for nexus to some persons I (once again) felt in subtle DX issues that hit me in the face all the time :D
I'm experimenting is prevent these and other minor problems related to very hard to debug typings error with an eslint plugin https://github.com/kandros/eslint-plugin-nexus. I'm very far from proficient in eslint rules development especially related to TS parser, if someone could guide me in the right direction I would love to dedicate some time in making nexus development experience easier in the day-by-day (some TS errors are just too much to deal with after lunch 😁 when there are 10+ generics involved) |
Related prisma/prisma-examples#867 (comment) I've created Will also reference out of band related issues here, one: https://prisma.slack.com/archives/CKQTGR6T0/p1570915353062700 |
Hey @kandros you may be interested in prisma-labs/team#5 where we're building up an epic to tackle a large amount of issues around nexus workflow. |
I am currently trialing a workflow when I use vscode and 2 nodemon processes:
So far so good! When I make changes in vscode, types get generated, vscode picks the changes up and the api server restarts. |
@thehappycoder you might be interested to know that we've taken a massive plunge against this theme of this issue over the past few months. Still emerging from the shadows. Update https://nexusjs.org |
I propose to invest in docs of prisma nexus. More examples with both crud and totally custom mutations, queries and subscriptions. More info about:
I see a lot of examples with small differences in notation and no discussion about comparison of them. |
Oopen for a long time. Many new issues came out of this. It has done its job. New issues always welcome ✌️ |
Nexus uses a particular approach to deal with typechecking, that involve generation of typings types files from "runtime defined objects" that extend a global "object type" that nexus itself uses to typecheck other types.
This is meant as a discussion to find problems related to developer experience and a possible solution to address them.
The text was updated successfully, but these errors were encountered: