Skip to content

refactor: extract devframe to standalone repo + bump to v0.2.0#341

Merged
antfu merged 1 commit into
mainfrom
antfu/devframe-v0.2.0
May 12, 2026
Merged

refactor: extract devframe to standalone repo + bump to v0.2.0#341
antfu merged 1 commit into
mainfrom
antfu/devframe-v0.2.0

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented May 12, 2026

Description

Devframe now lives at github.com/devframes/devframe and is published independently; this monorepo deletes its 200+ embedded source files and consumes devframe as an npm dependency via catalog:deps (initially pinned to ^0.2.0). A git submodule at devframe/ mirrors the source at the catalog-pinned tag (never a branch) for browsing and upstream contributions, managed by a new scripts/sync.ts (pnpm sync) that aligns the submodule with the catalog, validates the tag exists before bumping, and runs in postinstall so fresh clones init automatically. Six dependents (kit, core, rolldown, self-inspect, vite, docs) flip from workspace:* to catalog:deps, the 43 devframe/* path aliases plus turbo tasks / vitest projects / merged docs section all disappear, and AGENTS.md is trimmed of devframe-internal architecture/principles (now upstream). CI gets submodules: recursive on checkout; pnpm install, pnpm build, pnpm typecheck, pnpm test, pnpm lint, and pnpm docs:build are all green against devframe v0.2.0.

Linked Issues

Additional context

Reviewer focus: (1) the scripts/sync.ts design — especially that it validates upstream tag existence before mutating pnpm-workspace.yaml and refuses to leave the submodule at a non-tag commit; (2) the catalog cleanup in pnpm-workspace.yaml (dropped 11 entries previously used only by devframe — @modelcontextprotocol/sdk, @valibot/to-json-schema, ansis, immer, launch-editor, ohash, open, valibot, whenexpr, preact, @preact/preset-vite); (3) the docs cross-link retargeting in docs/kit/streaming.md from /devframe/... to https://devfra.me/....

Devframe now lives at github.com/devframes/devframe; this monorepo
consumes it as `devframe` from npm via `catalog:deps` and keeps a git
submodule at `devframe/` (tag-pinned, never a branch) as a checked-in
reference. `scripts/sync.ts` (run via `pnpm sync`) aligns the submodule
with the catalog version and is hooked into `postinstall` so fresh
clones init automatically. Drops 43 `devframe/*` path aliases, turbo
tasks, vitest projects, and the merged docs section.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 12, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@341
npm i https://pkg.pr.new/@vitejs/devtools-kit@341
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@341
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@341

commit: 1f855be

@antfu antfu changed the title refactor!: extract devframe to standalone repo + bump to v0.2.0 refactor: extract devframe to standalone repo + bump to v0.2.0 May 12, 2026
@antfu antfu merged commit 32ecd44 into main May 12, 2026
9 checks passed
@antfu antfu deleted the antfu/devframe-v0.2.0 branch May 12, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant