feat(cli): implement metadata command for API surface extraction#35843
Draft
Hotell wants to merge 19 commits intomicrosoft:experimental/fluent-clifrom
Draft
feat(cli): implement metadata command for API surface extraction#35843Hotell wants to merge 19 commits intomicrosoft:experimental/fluent-clifrom
metadata command for API surface extraction#35843Hotell wants to merge 19 commits intomicrosoft:experimental/fluent-clifrom
Conversation
|
Pull request demo site: URL |
metadata command for API surface extraction
- Add public accessibility modifiers to TsMorphAstParser methods - Rename private methods with leading underscore per naming convention - Replace no-explicit-any with proper types in test mocks - Fix dot-notation violations (auto-fixed) - Remove unused eslint-disable directive - Use type:'string'+array:true instead of string:true for yargs options Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ules ignore witin fixtures
Add new `fluentui-cli metadata` command that parses .d.ts build output to extract the complete API surface of a Fluent UI package. Features: - Parses .d.ts files using ts-morph to extract all exported symbols - Classifies exports into Components, Hooks, Types, and Others - Extracts JSDoc descriptions, tags, type signatures, and member details - Supports JSON (default), Markdown, and HTML output formats - Cross-package $ref resolution via metadata.json (JSON Schema style) - Entry resolution from package.json "types" field or --entry override CLI options: --entry, -e Path to index.d.ts (default: from package.json) --reporter, -r Output format: json | markdown | html --output, -o Output file path (default: stdout) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ea59631 to
fc22253
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add new
fluentui-cli metadatacommand that parses.d.tsbuild output to extract the complete API surface of a Fluent UI package.Features
.d.tsfiles using ts-morph to extract all exported symbolsmetadata.json(JSON Schema style)package.json"types"field or--entryoverrideCLI Options
Output Format (JSON)
Produces structured metadata with categories:
Cross-package references use JSON Pointer URI style:
@fluentui/react-utilities#/categories/types/ComponentPropsDependencies
Testing