You develop the templates in /template, and review your changes in /build.
-
Install dependencies with
npm installin the root folder. This will install the template development tool that watches changes in the/templatefolder and output the template to/build. -
Run
npm run devin root folder. This will build the template files to/build. This is how the code will look for those who install the project later. -
Run
npm installin./build/webandsanity installin/build/studioThis will install the necessary dependencies for the Gatsby frontend and the Studio. -
Run
npm run devin./build/webandsanity startin/build/studio. This will start the development servers for the Gatsby frontend and Sanity Studio.
When developing ProjectId and dataset name can be changed in template-values-development.json