Skip to content
joinery / docs
1191 words · updated 6 minutes agoREADME.md

Joinery

A pnpm + Nx monorepo maintained by Xifré Font: Nuxt websites for small publications and practices, the shared packages they build on, and the tooling that keeps them consistent. The developer portal is the readable way in.

Worth reading firstWhy
apps/huella-legalThe main product: a Nuxt 4 rebuild of a WordPress law magazine
@joinery/configsShared presets and the in-house ESLint rules every project runs
Architecture & boundariesHow projects may depend on each other, enforced at lint time
0028, 0030Two decisions: keeping old URLs working, and hosting cost

Workspace layout

packages/
    configs/          @joinery/configs — shared ESLint, Vitest, Playwright and tsconfig presets
    content/          @joinery/content — CMS entries and taxonomies + a Nuxt module
    i18n/             @joinery/i18n — translations core + a Nuxt module
    observability/    @joinery/observability — Grafana Faro in the browser, OpenTelemetry on the server
apps/
    developer-portal/ @joinery/developer-portal — the repository's public portal/front door over its docs, projects, architecture and engineering health
    huella-legal/     @joinery/huella-legal — Huella Legal, a WIP law blog redesign (Nuxt 4)
    marina-roustan/   @joinery/marina-roustan — Marina Roustan, a website rebuild (Nuxt 4)
    portfolio/        @joinery/portfolio — Xifré Font's personal site: the method, the work and the project maps
    wp-editor/        @joinery/wp-editor — local-only review-and-apply tool for bulk edits to WordPress posts and pages
infrastructure/
    scripts/          @joinery/scripts — repo-local dev tooling, one folder per script
    translations/     @joinery/translations — TMS serving the locale files over HTTP

packages/* is shared code and the only thing nx release versions. apps/* are the products. infrastructure/* is everything else: services apps call over the network, and repo tooling.

Looking forGo to
Anything about one projectIts own README.md
Every command, hook, workflow and skilldocs/FEATURES.md
Cross-project concepts and how-tosdocs/concepts/, docs/guides/ — start with the first hour
Why something is the way it isdocs/decisions/
Known problems per projectdocs/audits/
Files the tooling reads and writesdata/

Architecture & boundaries

Projects are layered with Nx tags (declared in each package.json under nx.tags) and enforced by @nx/enforce-module-boundaries at lint time:

TagMay depend onWho has it
type:apptype:integration, type:observability, type:configdeveloper-portal, huella-legal, marina-roustan, portfolio, wp-editor
type:integrationtype:configcontent, i18n
type:observabilitytype:configobservability
type:infratype:configtranslations
type:toolingtype:configscripts
type:confignothingconfigs

Every project also carries exactly one scope:* tag, and both rules apply at once:

ScopeMay depend onWho has it
scope:sharedscope:sharedconfigs, content, i18n, observability
scope:huella-legalscope:huella-legal, scope:sharedhuella-legal
scope:marina-roustanscope:marina-roustan, scope:sharedmarina-roustan
scope:portfolioscope:portfolio, scope:sharedportfolio
scope:internalscope:internal, scope:shareddeveloper-portal, wp-editor
scope:toolingscope:tooling, scope:sharedscripts
scope:infrascope:infra, scope:sharedtranslations

Apps compose, everything else stays a leaf, and nothing reaches into another product's scope. The constraints live in boundaries.ts; docs/concepts/boundaries.md has the why.

Tooling conventions

  • pnpm catalog: shared framework versions are pinned once in pnpm-workspace.yaml and referenced as catalog:.
  • No project.json: Nx infers targets from plugins and package scripts; metadata lives in each package.json's nx block.
  • Raw source packages: packages/* export TypeScript/Vue source with no build step.
  • Shared configs: every ESLint, Vitest, Playwright and tsconfig file wraps a preset from @joinery/configs.

Getting started

Requires the Node version in .nvmrc and pnpm (version pinned via packageManager in package.json).

pnpm install
pnpm quick-start                        # hooks, .env files, workspace coverage and developer-portal snapshot
pnpm dev                                # pick a project to start

Skip pnpm quick-start and the git hooks never install: lifecycle scripts are banned here, so Husky can't install itself.

lint, typecheck, test and build run on affected projects only (changed since master), like CI. For everything, pnpm exec nx run-many -t <target>. docs/FEATURES.md lists every other command.

CommandWhat it does
pnpm quick-startInstall Git hooks, create .env files, collect coverage, refresh the portal's snapshot
pnpm devPick a project and start it (pnpm dev <name> skips the picker). Installs first on a fresh clone
pnpm lintLint affected projects
pnpm typecheckTypecheck affected projects
pnpm testTest affected projects
pnpm checkLint, typecheck and test affected projects, failures inline, then docs:map --check
pnpm test:coverageThe whole workspace with coverage, merged into coverage/index.html
pnpm buildBuild affected projects
pnpm graphOpen the Nx project graph
pnpm docs:mapRe-render docs/FEATURES.md; --check asserts it is current
pnpm release:dryPreview a release (versioning + changelogs)

Git conventions

Each rule is enforced by a hook or workflow; change-lifecycle.md has the order they fire in.

Versioning

Versions and changelogs are derived from commit messages by nx release — no manual bumps.

  • Each packages/* project is versioned independently, from the commits that touched its files.
  • feat → minor, fix → patch; chore, refactor, docs, test, ci and style don't bump. A ! suffix or BREAKING CHANGE: footer → major.
  • While a package is on 0.x, Nx downshifts bumps one level (breaking → minor, feat → patch).
  • Current versions come from git tags (<projectName>@<version>), falling back to package.json.
  • Packages depending on a bumped package get a patch bump and a "Updated Dependencies" entry.

Cut versions with the Release workflow (release.yml): leave dry-run on to preview, tick first-release only for a project with no tag yet. Each bumped package gets a GitHub Release. Locally, pnpm release:dry previews.