Skip to content

About

Commission-style challenges for off-rack dresses in Dressmaker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tailor-Made

A challenge generator for off-rack dresses in Dressmaker. Story clients hand you a card of requirements. Off-rack dresses have none, so Tailor-Made makes one up: a client, a short brief and a few directions to design towards. Share a challenge as a link, or take the daily one that everyone gets.

There is no backend and no account. Nothing is stored.

Unofficial and unaffiliated. Tailor-Made is a fan project. It uses no game art, client names or card text.

Status: the generator and every screen are built. Milestone M6 (tune and launch) is underway. The site deploys to Netlify from CI, and the game gets playtested. The design is in docs/superpowers/specs/2026-10-16-tailor-made-design.md.

Credits


Requirements

Node 24
pnpm 9.15.9, pinned in packageManager

pnpm is pinned, so let corepack pick the right version.


Setup

corepack enable
pnpm install
pnpm exec playwright install chromium   # once, for test:e2e
pnpm dev

pnpm dev serves the app at the URL Vite prints.


Commands

Command Does
pnpm dev Vite dev server
pnpm build tsc -b then vite build. Typecheck is part of the build
pnpm preview Serve the production build
pnpm typecheck Types only, no emit
pnpm lint / pnpm lint:fix ESLint, including the layering and determinism rules
pnpm format / pnpm format:check Prettier (Markdown is excluded)
pnpm test Vitest, once
pnpm snapshots:rewrite Rewrites the pinned challenges in src/domain/fixtures/. Rewriting breaks old share links. Do not run it to make a test pass
pnpm grammar:sample Writes docs/notes/grammar-sample.md, a read-through of generated briefs and client lines for grammar checks
pnpm test:watch Vitest in watch mode
pnpm test:coverage Vitest with v8 coverage
pnpm test:e2e Playwright on a production build, desktop and mobile
pnpm test:e2e:ui Playwright in its interactive UI mode

The gate before any commit:

pnpm lint && pnpm typecheck && pnpm format:check && pnpm test && pnpm build && pnpm test:e2e

CI runs the same gate on every pull request and on main.


Project structure

src/
  game/        versioned data and brief content, six client voices   (no logic)
  domain/      directions, PRNG, generate, reroll, validate, daily   (pure)
  domain/fixtures/  the pinned challenges that guard old share links
  links/       share link encode and decode
  features/    screens, one directory each
  components/  shared UI: the app shell, the client card, shadcn primitives
  lib/         helpers
docs/          the design spec, the wireframes, the visual direction, notes and case study
e2e/           Playwright tests
scripts/       the snapshot writer

Dependencies point one way: features → links → domain → game. Lint enforces it. It also bans Math.random and Date in domain/ and game/.


Dependency updates

Dependabot opens PRs every Monday, set up in .github/dependabot.yml. Minor and patch npm updates come as one grouped PR. Each major comes on its own. GitHub Actions updates come as one PR. Each PR runs the full gate, and Theo merges it like any other.

It skips TypeScript 6.1 and up, Node type majors and pnpm majors, for the reasons under Versions in CLAUDE.md. It does not see the Netlify CLI version pinned in ci.yml or the README. Bump that by hand.


Deploy

The site lives at https://tailor-made-dressmaker.netlify.app.

GitHub Actions deploys main after the gate job passes. It builds the site and uploads dist/ with the Netlify CLI. Netlify builds nothing, so no Netlify build minutes are used. public/_redirects sends every path to the app, so /daily, /about and share links load on a hard refresh.

Each pull request from this repo also gets a preview. After gate passes, the preview job uploads the build under the alias pr-<number> and keeps one comment on the pull request up to date with the link. Each new push replaces the preview.

Two repo secrets drive it:

Secret What it is
NETLIFY_SITE_ID The site's ID, from Site configuration in Netlify
NETLIFY_AUTH_TOKEN A personal access token, from User settings, then Applications

Until both are set, the deploy job skips itself with a notice and CI stays green.

One-time setup, already done. Kept here in case the site is ever recreated:

  1. Create the site without linking Git, either with Netlify Drop (https://app.netlify.com/drop) and a freshly built dist/, or with pnpm dlx netlify-cli@27.14.2 sites:create --name <name> after pnpm dlx netlify-cli@27.14.2 login. Never use Import from Git.
  2. Copy the Site ID from Site configuration.
  3. Create a personal access token in Netlify under User settings, then Applications.
  4. Run gh secret set NETLIFY_SITE_ID and gh secret set NETLIFY_AUTH_TOKEN, and paste each value.
  5. Re-run the latest main CI run, or push to main.

Design

The look is Rosewood Atelier: a dark rosewood ground, cream type and one dusty rose accent. Fonts are self-hosted through @fontsource, so the app loads nothing from a font CDN. The palette, type and component shapes are in docs/design/rosewood-atelier.md.

Build to the hi-fi frames in docs/wireframes/hifi/frames/. docs/wireframes/README.md indexes them. Desktop and mobile switch at 768px.

In development only, /debug shows a batch of generated challenges. It is not in the production build.

About

Commission-style challenges for off-rack dresses in Dressmaker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages