Skip to content

feat(cli): add mex export to bundle scaffold into one Markdown file#72

Open
advancedresearcharray wants to merge 1 commit into
theDakshJaitly:mainfrom
advancedresearcharray:feat/mex-export-56
Open

feat(cli): add mex export to bundle scaffold into one Markdown file#72
advancedresearcharray wants to merge 1 commit into
theDakshJaitly:mainfrom
advancedresearcharray:feat/mex-export-56

Conversation

@advancedresearcharray
Copy link
Copy Markdown
Contributor

Summary

  • Adds mex export CLI command that bundles all scaffold markdown files into a single document with a ## <path> header per source file
  • Reuses findScaffoldFiles and DEFAULT_SCAFFOLD_PATTERNS from drift detection for consistent file discovery
  • Supports stdout (default) and -o/--output <path> for writing to a file

Test plan

  • npm run typecheck passes
  • npm test passes (including new test/export.test.ts with 5 cases)
  • npm run build passes
  • Bundled output includes all scaffold files under section headers
  • ROUTER.md appears before context/ and patterns/ sections

Closes #56

Made with Cursor

Adds a new `mex export` command that discovers scaffold files via
findScaffoldFiles, concatenates them with per-file section headers,
and writes to stdout or an optional output path.

Closes theDakshJaitly#56

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Add mex export (bundle scaffold to a single Markdown file)

1 participant