The result of the WordPress → TanStack CMS migration: the WXR export in
../wordpress-before ported to a TanStack Start app on
TanStack CMS 1.0 — the same shape as ../blog.
All the app-specific code is:
src/cms.definition.ts— thepageandpostcollections mapped from the WordPress post types, categories and tags asmultiselectfields, and aredirectcollection for the old permalinks.src/cms.config.ts—defineCms(definition, …)with the blocks, AI adapters, seed, and a classic WordPress theme.src/seed-data.ts— the posts and pages converted (Gutenberg/HTML → Markdown), generated byscripts/migrate-wordpress.mjs.src/router.tsx+vite.config.ts— the standard wiring; routes come from@tanstack/cms-ui-reactthroughcreateRoutes(definition).src/migration.test.ts— the parity test.
See MIGRATION.md for the conversion map, the parity test,
and the gap report.
pnpm install # from the repo root (workspace)
pnpm --filter wordpress-after dev # http://localhost:3016
pnpm --filter wordpress-after test:lib # parity testOld permalinks such as /starting-a-garden-journal/ redirect to
/post/starting-a-garden-journal.
No server needed — the WXR file is the source:
pnpm --filter wordpress-after migrate:data