-
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
feature(gatsby): Support TypeScript by default by compiling TS files #23547
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
183c3fd
feature(gatsby): Support TypeScript by default by compiling TS files
blainekasten d548ed0
add a test to ensure we arent adding an extra gatsby-plugin-typescript
blainekasten d706214
Make a TypeScript file in gatsby-starter
blainekasten 762e585
Add TypeScript example to blog starter
blainekasten 41b1354
Update Using Typescript example
blainekasten d3561ab
update gatsby-plugin-typescript README.md
blainekasten d804992
Add Basic TypeScript example
blainekasten 9e760f8
Update packages/gatsby-plugin-typescript/README.md
blainekasten f7d5704
Update packages/gatsby-plugin-typescript/README.md
blainekasten f50c61a
Add more to the TS docs
blainekasten 5d293d1
Merge branch 'typescript-by-default/compile-ts' of https://github.com…
blainekasten 2d79b05
Add docs to sidebar
blainekasten 4e89725
Use you as the pronoun
2e74c8e
merge master
blainekasten 3a5795f
Fix e2e test
blainekasten 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
File renamed without changes.
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
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.
Is it possible to create a different helper function here? The one that exists now also check paths property and might cause weird test failures when we might move more plugins as a default.
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'm not sure. Do you have any suggestions? It seems to work right now.
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.
It's the same setup we have for
gatsby-source-page-creators
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.
maybe
replaceFieldsThatCanVary
should also just do more checks before trying to dopluginOptions.path
sanitization (apply it only forgatsby-plugin-page-creator
)?But this doesn't seem to be concern of this pull request?