To add a new package to this repo, you can run npm run plop and then choose package and then it sets up a new package for you — see https://github.com/gatsbyjs/gatsby/tree/master/plop-templates/package
It'd be cool to have a standalone tool for others to use when creating a new plugin to distribute as it's not always obvious how to create new NPM packages and publish them.
This along with a short tutorial on publishing a new NPM package would be 🔥
This is the #3 most wanted thing in Gatsby tutorials. A tutorial on how to create and/or modify an existing plugin (same as package, sort of?). Making it easy to create packages and publish them would be top notch.
Maybe this could be rolled into gatsby-cli?
Being able to do gatsby plugin my-new-plugin could be nice.
@m-allanson that makes sense!
@KyleAMathews I'm thinking of adding this to docs projects. Does that make sense?
@shannonbux 👍
Summary of what interviewees said about needing help building their own packages/plugins: https://slack-files.com/T6VN36NMP-F8RP27E4A-928a785a43
@m-allanson I prefer npm install as it gives me the native feel of react and npm. Enhancing the cli though could help those not familiar to npm. I also prefer a git clone and npm install instead of doing a gatsby new. So maybe it is only me.
All good points @shannonbux
For the record, I strongly identify with:
People coming from React might need to know when they need a plugin vs. when can they do something natively
@benjaminhoffman have you seen this?
love this. thx for the ping. going thru the steps to create a plugin now. hopefully have it wrapped up in a week or so and will write a 'how to post'.
Will this be closed once @jlengstorf plugin work is done (the tutorial, the sample READme template thing, etc.)?
@KyleAMathews a lot of people liked this idea, wondering when/if to bring it back into people's minds!
Definitely still worth doing!
This should be rolled up into the CLI work that I still need to define.
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!
Most helpful comment
Maybe this could be rolled into
gatsby-cli?Being able to do
gatsby plugin my-new-plugincould be nice.