Navigate to repository root path and execute following:
npm ci
cd packages/gatsby-theme-minimal
npm ci
cd ../../examples/gatsby-starter-testing
npm ciInitialise Yalc
Navigate to repository root path and execute following:
- Navigate to
gatsby-theme-minimalpackage and publishgatsby-theme-minimalpackage to local Yalc repository:
cd packages/gatsby-theme-minimal
npx yalc publish- Navigate to
gatsby-starter-testingexample and addgatsby-theme-minimalpackage dependency:
cd ../../examples/gatsby-starter-testing
npx yalc add gatsby-theme-minimal
npm installOnce gatsby-theme-minimal package is changed and you would like to test it in gatsby-starter-testing example,
you will need to update the dependencies and Yalc configuration.
Navigate to gatsby-theme-minimal package from the repository root path and publish gatsby-theme-minimal package with --push flag:
cd packages/gatsby-theme-minimal
npx yalc publish --pushYou can use npx yalc push shortcut instead of npx yalc publish --push.
If gatsby-theme-minimal package changed its own dependencies you will need to execute npm install as well in the examples/gatsby-starter-testing:
cd ../../examples/gatsby-starter-testing
npm install --forceThe Gatsby theme is located in packages/gatsby-theme-minimal and it is used in the example app.
The example Gatsby app which is using the Gatsby theme is located in examples/gatsby-starter-testing.
This example app is based on Gatsby Testing Starter and
it has configured packages/gatsby-theme-minimal dependency using Yalc.
The packages/gatsby-theme-minimal dependency is stored in .yalc directory and it is managed by Yalc using yalc.lock file.
This repostiory is intergared with GitHub Actions and has CI pipeline defined in .github/workflows/ci.yml.
Follow Creating a template repository documentation.
Example:
Only allow squash merging of pull requests, follow Creating a template repository documentation.
Example:
Install Semantic Pull Requests GitHub App.

