Skip to content
joinery / catalog

@joinery/marina-roustan

A Nuxt 4 rebuild of Marina Roustan's website. So far: one placeholder page, the env check, the test harness and the design tokens.

📦 @joinery/marina-roustan

A Nuxt 4 rebuild of Marina Roustan's website. So far: one placeholder page, the env check, the test harness and the design tokens.

Design

The brand, the tokens and their contrast table are in DESIGN.md; every token lives in layers/design, on Nuxt UI and Tailwind v4.

Development

CommandWhat it does
pnpm devDev server. Reads no live site
pnpm buildProduction build into .output/. Also typechecks
pnpm previewPreview the production build
pnpm testVitest. pnpm test:coverage adds coverage
pnpm test:e2ePlaywright against .output/. Build first, or run nx test:e2e
pnpm exec nx nuxt-prepare @joinery/marina-roustanRegenerate .nuxt by hand; Nx already runs it before lint, typecheck, test and build

Environment

Same mechanism as huella-legal: a variable a feature needs goes under requiredEnv in nuxt.config.ts, checked by modules/requiredEnv.ts. None is listed yet.

VariableWhat it is
NUXT_SITE_ENVproduction on the production deploy and preview on every other deploy, unset in dev, CI and e2e builds. Only production fails on an unset required variable
NUXT_PUBLIC_SITE_URLOptional. Overrides the public origin set in nuxt.config.ts, with scheme

public.site.url is a literal in nuxt.config.ts. A new variable goes in .env.example and a row here.

Testing

LayerRunsWhereCommand
nodeVitest on the node presetmodules/, server/, shared/, and eslint.config.spec.tspnpm test
nuxtVitest in a booted Nuxt app on happy-dom, via @nuxt/test-utilsapp/pnpm test
e2ePlaywright, Chromium only, at 390, 768 and 1280 pxe2e/pnpm exec nx test:e2e @joinery/marina-roustan

Both configs wrap the @joinery/configs presets. Pages are left out of coverage; Playwright covers them.

e2e

Runs the built server on port 4320 with e2e/server.ts preloaded, which only records server console output for now. Any console output fails a test, and every page spec runs an axe scan. Conventions are in the configs README.

Next

NeedPlan
ContentLocal Markdown (#448). Dev and e2e never read the live site
SEO, robots, sitemapThe @nuxtjs/* SEO modules, as huella-legal has them
Coverage thresholdsOnce there's code beyond the scaffold