Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pkl eval --format json <file.pkl> # Package URI requires published package

## Architecture

Fourteen modules in `Sources/`:
Thirteen modules in `Sources/`:

| Module | Purpose |
| --------------- | --------------------------------------------------------- |
Expand All @@ -113,7 +113,6 @@ Fourteen modules in `Sources/`:
| `AndroidExport` | Android export (XML resources, Compose, Vector Drawables) |
| `FlutterExport` | Flutter export (Dart code, SVG/PNG assets) |
| `WebExport` | Web/React export (CSS variables, JSX icons) |
| `SVGKit` | SVG parsing, ImageVector/VectorDrawable generation |
| `JinjaSupport` | Shared Jinja2 template rendering across Export modules |

**Data flow:** CLI -> PKL config parsing -> FigmaAPI fetch -> ExFigCore processing -> Platform plugin -> Export module -> File write
Expand Down Expand Up @@ -315,22 +314,23 @@ NooraUI.formatLink("url", useColors: true) // underlined primary

## Dependencies

| Package | Version | Purpose |
| --------------------- | ------- | ------------------------------- |
| swift-argument-parser | 1.5.0+ | CLI framework |
| swift-collections | 1.2.x | Ordered collections |
| swift-jinja | 2.0.0+ | Jinja2 template engine |
| XcodeProj | 8.27.0+ | Xcode project manipulation |
| swift-log | 1.6.0+ | Logging |
| Rainbow | 4.2.0+ | Terminal colors |
| libwebp | 1.4.1+ | WebP encoding |
| libpng | 1.6.45+ | PNG decoding |
| swift-custom-dump | 1.3.0+ | Test assertions |
| Noora | 0.54.0+ | Terminal UI design system |
| swift-resvg | 0.45.1 | SVG parsing/rendering |
| swift-docc-plugin | 1.4.5+ | DocC documentation |
| swift-yyjson | 0.5.0+ | High-performance JSON codec |
| pkl-swift | 0.8.0+ | PKL config evaluation & codegen |
| Package | Version | Purpose |
| --------------------- | ------- | -------------------------------------------------- |
| swift-argument-parser | 1.5.0+ | CLI framework |
| swift-collections | 1.2.x | Ordered collections |
| swift-jinja | 2.0.0+ | Jinja2 template engine |
| XcodeProj | 8.27.0+ | Xcode project manipulation |
| swift-log | 1.6.0+ | Logging |
| Rainbow | 4.2.0+ | Terminal colors |
| libwebp | 1.4.1+ | WebP encoding |
| libpng | 1.6.45+ | PNG decoding |
| swift-custom-dump | 1.3.0+ | Test assertions |
| Noora | 0.54.0+ | Terminal UI design system |
| swift-svgkit | 0.1.0+ | SVG parsing, ImageVector/VectorDrawable generation |
| swift-resvg | 0.45.1 | SVG parsing/rendering |
| swift-docc-plugin | 1.4.5+ | DocC documentation |
| swift-yyjson | 0.5.0+ | High-performance JSON codec |
| pkl-swift | 0.8.0+ | PKL config evaluation & codegen |

## Troubleshooting

Expand Down
11 changes: 10 additions & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 4 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let package = Package(
.package(url: "https://github.com/alexey1312/swift-resvg.git", exact: "0.45.1-swift.3"),
.package(url: "https://github.com/mattt/swift-yyjson", from: "0.5.0"),
.package(url: "https://github.com/apple/pkl-swift", from: "0.8.0"),
.package(url: "https://github.com/DesignPipe/swift-svgkit.git", from: "0.1.0"),
],
targets: [
// Main target
Expand All @@ -39,7 +40,7 @@ let package = Package(
"AndroidExport",
"FlutterExport",
"WebExport",
"SVGKit",
.product(name: "SVGKit", package: "swift-svgkit"),
"ExFig-iOS",
"ExFig-Android",
"ExFig-Flutter",
Expand Down Expand Up @@ -109,22 +110,12 @@ let package = Package(
]
),

// SVG parsing and code generation
.target(
name: "SVGKit",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "Resvg", package: "swift-resvg"),
],
exclude: ["CLAUDE.md", "AGENTS.md"]
),

// Exports resources to Android project
.target(
name: "AndroidExport",
dependencies: [
"ExFigCore",
"SVGKit",
.product(name: "SVGKit", package: "swift-svgkit"),
"JinjaSupport",
.product(name: "OrderedCollections", package: "swift-collections"),
],
Expand Down Expand Up @@ -180,7 +171,7 @@ let package = Package(
"ExFigCore",
"ExFigConfig",
"AndroidExport",
"SVGKit",
.product(name: "SVGKit", package: "swift-svgkit"),
],
exclude: ["CLAUDE.md", "AGENTS.md"]
),
Expand Down Expand Up @@ -271,10 +262,6 @@ let package = Package(
"WebExport", .product(name: "CustomDump", package: "swift-custom-dump"),
]
),
.testTarget(
name: "SVGKitTests",
dependencies: ["SVGKit", .product(name: "CustomDump", package: "swift-custom-dump")]
),

// MARK: - Plugin Tests

Expand Down
1 change: 0 additions & 1 deletion Sources/SVGKit/AGENTS.md

This file was deleted.

56 changes: 0 additions & 56 deletions Sources/SVGKit/CLAUDE.md

This file was deleted.

Loading
Loading