This will guide you through how to get a base setup up and running for developing a gatsby theme
Then i usually replace the content of the package.json with the following
Then i create the folder structure and add the base packages to each project
Go into your gatsby-theme-boop package.json and copy the dependancies to a peerDependancies
Then we want to create our internal folder structure
Because we are using yarn workspaces we want to link the theme to the demo. Create a gatsby-config.js in our demo root and add our theme as a plugin. We also want to add it to our demos package.json, accepting any version.
Then we run yarn from the root of our project to link it all up and we can then check if its all cool
This should show us the following: