My personal website
See the codeThis repository contains the source code for kentcdodds.com, built with React Router v7, React, TypeScript, Vite, and Cloudflare Workers.
@cloudflare/vite-plugin (local dev in workerd)services/site/migrations/) + @remix-run/data-table
(runtime DB)cp services/site/.env.example services/site/.envnpm run setup -sThe setup script installs dependencies, resets the local D1 database (Miniflare), validates the project, installs Playwright browsers, and runs end-to-end tests.
This repo now uses npm workspaces. Install dependencies from the repository root
so the site and worker packages share one lockfile and one node_modules tree.
The site itself lives in services/site, while root npm run ... commands
forward to that workspace for convenience.
Start the development server (MDX watcher sidecar + workerd via Vite):
npm run devThen open http://localhost:3000. External APIs are mocked by default
(MOCKS=true). Transactional emails are written to
services/site/mocks/msw.local.json.
This repo uses Husky + lint-staged from the repository root.
git commit, staged files are formatted with Prettier, then the repo runs
npm run lint:all, npm run typecheck:all, and npm run build:all.git push, the repo runs npm run test:all.If hooks stop running after a fresh clone, run npm install from the repo root
to reinstall them via the prepare script.
npm run dev - start local development servernpm run format:staged - format staged files the same way pre-commit doesnpm run test - run unit/component testsnpm run test:all - run workspace tests used by pre-pushnpm run test:e2e:dev - run Playwright tests against dev servernpm run lint - run Oxlintnpm run lint:all - run lint across the site and workspace packagesnpm run typecheck - run TypeScript checksnpm run typecheck:all - run TypeScript checks across all workspacesnpm run build - build the appnpm run build:all - run workspace builds used by pre-commitnpm run nx:graph - inspect the Nx workspace graphFor contribution guidelines and manual setup details, read
CONTRIBUTING.md.
2,228 followers · starred Dec 2021
2,229 followers · starred Mar 2021
339 followers · starred Feb 2022
277 followers · starred Oct 2021
My personal website
See the codeThis repository contains the source code for kentcdodds.com, built with React Router v7, React, TypeScript, Vite, and Cloudflare Workers.
@cloudflare/vite-plugin (local dev in workerd)services/site/migrations/) + @remix-run/data-table
(runtime DB)cp services/site/.env.example services/site/.envnpm run setup -sThe setup script installs dependencies, resets the local D1 database (Miniflare), validates the project, installs Playwright browsers, and runs end-to-end tests.
This repo now uses npm workspaces. Install dependencies from the repository root
so the site and worker packages share one lockfile and one node_modules tree.
The site itself lives in services/site, while root npm run ... commands
forward to that workspace for convenience.
Start the development server (MDX watcher sidecar + workerd via Vite):
npm run devThen open http://localhost:3000. External APIs are mocked by default
(MOCKS=true). Transactional emails are written to
services/site/mocks/msw.local.json.
This repo uses Husky + lint-staged from the repository root.
git commit, staged files are formatted with Prettier, then the repo runs
npm run lint:all, npm run typecheck:all, and npm run build:all.git push, the repo runs npm run test:all.If hooks stop running after a fresh clone, run npm install from the repo root
to reinstall them via the prepare script.
npm run dev - start local development servernpm run format:staged - format staged files the same way pre-commit doesnpm run test - run unit/component testsnpm run test:all - run workspace tests used by pre-pushnpm run test:e2e:dev - run Playwright tests against dev servernpm run lint - run Oxlintnpm run lint:all - run lint across the site and workspace packagesnpm run typecheck - run TypeScript checksnpm run typecheck:all - run TypeScript checks across all workspacesnpm run build - build the appnpm run build:all - run workspace builds used by pre-commitnpm run nx:graph - inspect the Nx workspace graphFor contribution guidelines and manual setup details, read
CONTRIBUTING.md.
2,228 followers · starred Dec 2021
2,229 followers · starred Mar 2021
339 followers · starred Feb 2022
277 followers · starred Oct 2021