-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
CTF-next: rewrite to TypeScript #37123
CTF-next: rewrite to TypeScript #37123
Conversation
…-schema-generation-typescript
…-schema-generation-typescript
"build": "babel src --out-dir . --ignore **/__tests__ --ignore **/__fixtures__", | ||
"prepare": "cross-env NODE_ENV=production npm run build", | ||
"watch": "babel -w src --out-dir . --ignore **/__tests__ --ignore **/__fixtures__" | ||
"build": "babel src --out-dir dist/ --ignore \"**/__tests__\" --ignore \"**/__mocks__\" --extensions \".ts,.js\"", |
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 might be missing something, but what's the reason for building the plugin? Is it needed for Gatsby projects that aren't compiling TypeScript yet?
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.
Nope, it is because plugins need to be provided in JS.
@@ -1,8 +1,8 @@ | |||
{ | |||
"name": "gatsby-source-contentful", | |||
"description": "Gatsby source plugin for building websites using the Contentful CMS as a data source", | |||
"version": "8.8.0-next.0", |
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.
Is the change from 8 to 0 intentional?
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.
yes, the projects repository automation will take care of versioning :)
// _context: any, | ||
// _info: GraphQLResolveInfo, |
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.
Comments can be removed, right?
Refactors the plugin code base to TS.
Will eventually increase reliability and developer experience.
Also, as we have a detailed, big, code review upcoming with the next version. Doing this now allows us to review the TS port at the same time.
This turns #30855 into TypeScript