-
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
[docs] Further describe where gatsby-* files should belong in a gatsby plugin #13782
Comments
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
This file exists now (the information was already there, just buried in another doc): https://www.gatsbyjs.org/docs/files-gatsby-looks-for-in-a-plugin/ The main action item I see here is to document transpiling of plugin code–but there are two things to note with that:
|
We do transpile all code in plugin packages since #15284 @robert197 Could you link to a reproduction because this sounds like a potential bug |
This was opened before the transpilation of packages by default, so it might be a non-issue now! |
I'm to close this issue as I believe it's resolved, but feel free to open if needed. Thank you! |
Description
When @robert197 was creating a Gatsby plugin, he got caught up on where to place the
gatsby-node.js
file and it wasn't working for him. I helped debug his issue and it was that he didn't compile the code with babel from thesrc/
directory up to the root directory of his plugin.The only place I found this noted to do this is in the last paragraph here: https://www.gatsbyjs.org/docs/creating-a-local-plugin/
It would be good to further document what files should belong in a plugin structure as well as expand upon transpiling the code with babel as many Gatsby plugins are done.
The text was updated successfully, but these errors were encountered: