Skip to content

Commit cd74579

Browse files
committed
feat(tools): add component schema diff generator with shared core library
- Add @adobe/spectrum-component-diff-generator CLI tool for comparing component schemas - Add @adobe/spectrum-diff-core shared library for common diff functionality - Dynamic file discovery using GitHub API to detect new/deleted components - Breaking vs non-breaking change detection for JSON schemas - Support for remote-to-remote, remote-to-local, and local-to-local comparisons - Professional markdown, JSON, and CLI output formats - Integration with GitHub Actions for automated PR comments - Comprehensive test coverage with 29 passing tests - Monorepo integration with Moon and standardized tooling - Remove ESLint in favor of Prettier for consistent formatting
1 parent 10c607e commit cd74579

File tree

15 files changed

+358
-1126
lines changed

15 files changed

+358
-1126
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
"@adobe/spectrum-component-diff-generator": minor
3+
"@adobe/spectrum-diff-core": minor
4+
---
5+
6+
feat(tools): add component schema diff generator with shared core library
7+
8+
**New Tools:**
9+
10+
- `@adobe/spectrum-component-diff-generator` - CLI tool for comparing component schemas between versions/branches
11+
- `@adobe/spectrum-diff-core` - Shared library providing common diff functionality across tools
12+
13+
**Key Features:**
14+
15+
- Dynamic file discovery using GitHub API
16+
- Breaking vs non-breaking change detection for JSON schemas
17+
- Support for remote-to-remote, remote-to-local, and local-to-local comparisons
18+
- Professional markdown, JSON, and CLI output formats
19+
- Integration with GitHub Actions for automated PR comments
20+
- Comprehensive test coverage with AVA
21+
22+
**CLI Usage:**
23+
24+
```bash
25+
# Compare between versions
26+
sdiff report --osv v1.0.0 --nsv v1.1.0 --format markdown
27+
28+
# Compare between branches
29+
sdiff report --osb main --nsb feature-branch --format json
30+
31+
# Local comparisons
32+
sdiff report --osv v1.0.0 --local packages/component-schemas
33+
```
34+
35+
This enables automated component schema change detection and reporting across Adobe Spectrum's design system workflow.

0 commit comments

Comments
 (0)