Skip to content

municipio-se/gatsby-packages

Repository files navigation

Municipio Gatsby Packages

This is the monorepo for all Gatsby packages related to Municipio.

Packages

All packages are inside the /packages directory

@municipio/gatsby-theme-basic

A Gatsby theme for a basic setup of Municipio. It's dependent on @whitespace/gatbsy-theme-wordpress-basic which handles the sourcing from Wordpress and provides some basic components and layout. The @municipio/gatsby-theme-basic package adds components for the core Modularity modules.

@municipio/gatsby-theme-intranet

A Gatsby theme adapted for intranets. It comes with more opinionated layout and styling as well as an SSO integration with Wordpress.

Examples

The /examples directory contains demo apps. In this case, they are actually submodules linking to the two Gatsby starters – one for each theme.

Contributing

If your want to make a pull request, fork the repo and create a branch based on main but the name must start with feature/. Commit messages should follow Conventional Commits. Publishing is done via Lerna.

Publishing new versions

  1. Install Lerna globally: npm install --global lerna
  2. Make sure you have the latest version of the main branch or if you are making a patch release for an older minor version, use that branch, e.g. 1.4.x.
  3. Run lerna publish --force. The --force ensures that all packages are released with the new version number even if they haven’t changed.
  4. Make sure the version numbers are correct before you continue