You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
Currently, ejecting needs the three following steps:
Creating a server.ts file and instantiating nexus + the GraphQL Server
Adding all the imports to the context, the types, the prisma-client etc etc
Adding an index.ts file in the graphql folder to export all the types exported within the folder
Description
Yoga has the knowledge of all the paths necessary to scaffold all the necessary files to eject.
In fact, as part of the build command, we already need to scaffold all these files to make a yoga project runnable by node, which means:
Creating a server.ts file containing all the server + nexus configurations
Properly scaffolding the imports
Adding an index.ts file in the graphql folder
Unlike create-react-app or other frameworks, ejecting WOULD NOT be a one-time irreversible step. Reverting could simply be done by deleting the scaffolded files and everything would still work.
I believe that would ease a lot ejecting from yoga!
The text was updated successfully, but these errors were encountered:
Unlike create-react-app or other frameworks, ejecting WOULD NOT be a one-time irreversible step. Reverting could simply be done by deleting the scaffolded files and everything would still work.
Yes! I employ maintainers to keep this statement true. I didn’t know this before, but now I’m not “scared” to eject. I am willing to bet that others will have the same sentiment as me once they understand ejecting isn't a irreversible action. 💯
Motivation
Currently, ejecting needs the three following steps:
server.ts
file and instantiating nexus + the GraphQL Serverindex.ts
file in thegraphql
folder to export all the types exported within the folderDescription
Yoga has the knowledge of all the paths necessary to scaffold all the necessary files to eject.
In fact, as part of the
build
command, we already need to scaffold all these files to make a yoga project runnable bynode
, which means:server.ts
file containing all the server + nexus configurationsindex.ts
file in thegraphql
folderUnlike
create-react-app
or other frameworks, ejecting WOULD NOT be a one-time irreversible step. Reverting could simply be done by deleting the scaffolded files and everything would still work.I believe that would ease a lot ejecting from yoga!
The text was updated successfully, but these errors were encountered: