Work Shelter  August 2025 to now

Bringing Shelter's website into our monorepo

Shelter’s main website lived in its own repository, separate from the Nx monorepo that holds the design system we’re building and our custom Contentful apps. Every change to a component meant doing the work twice. The plan to bring the website in was already in place when I joined in August 2025. My first job was pulling reusable components out of the website and into the design system. They were bound up with Gatsby, Contentful and our forms library, so each one had to be unpicked before anything else could use it. We’ve extracted 99 so far, and the design system now has a name, Cornerstone.

By February 2026 I’d written the plan for it: five phases, from moving the code across through to switching the live site over. In March the move became the team’s main focus. A lot of the planning was deciding what not to do yet. The website had no error monitoring, so in July I set up Sentry, and the first couple of days turned up 60 to 70 errors nobody knew about, some with hundreds of occurrences each. I held the move back until we’d cleared that noise, so anything the move broke would stand out.

One of our senior developers did the move itself. On 4 September 2026 he brought 2,022 files across in a single change. Only one of them was changed on the way, and two were left out. My part was the plan around it, reviewing his work, and a Monday check-in so nothing sat stuck for long. I left some decisions out of the plan on purpose, so they were his to make.

While the old repository keeps running, its changes have to be pulled across regularly. I found that those pulls would quietly undo changes we’d made in the monorepo, worked out a fix, and did the first pull by hand in October. Then I turned it into a single command so it doesn’t depend on me.

Once the migration is done, the next step is getting Cornerstone used across the website, and from there further afield.