Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 30bae76

Browse files
authored
feat: rename XcodeProjMapper to XcodeGraphMapper (#103)
* chore: build and deploy docc documentation * Enable combined documentation * Skip building XcodeMetadata * Use development toolchain * Update Mockable * Revert back to the latest version * Add build docs workflow * Rename XcodeProjMapper to XcodeGraphMapper * Lint code
1 parent 9c4c0c5 commit 30bae76

90 files changed

Lines changed: 133 additions & 42 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/XcodeGraph.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: XcodeGraph
22
on:
33
push:
44
branches:
5-
- "**"
5+
- "main"
66
tags-ignore:
77
- "**"
88
paths:
@@ -51,7 +51,7 @@ jobs:
5151
- name: Test on Linux
5252
if: matrix.os == 'ubuntu-22.04'
5353
# These momdules rely on some Xcode utilities like xcode-select
54-
run: swift test --skip XcodeProjMapperTests --skip XcodeMetadataTests
54+
run: swift test --skip XcodeGraphMapperTests --skip XcodeMetadataTests
5555
- name: Test
5656
if: matrix.os != 'ubuntu-22.04'
5757
run: swift test

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
deployments: write
12+
name: Publish to Cloudflare Pages
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- uses: jdx/mise-action@v2
17+
with:
18+
experimental: true
19+
- name: Setup Swift
20+
uses: SwiftyLab/setup-swift@latest
21+
with:
22+
swift-version: 6.0.3
23+
- name: Build docs
24+
run: mise run docs:build
25+
- name: Deploy
26+
uses: cloudflare/wrangler-action@v3
27+
with:
28+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+
command: pages deploy .build/documentation --project-name=xcodegraph
31+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
merge_group:
9+
10+
concurrency:
11+
group: docs-${{ github.head_ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
name: Build
17+
runs-on: "ubuntu-latest"
18+
timeout-minutes: 15
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: jdx/mise-action@v2
22+
with:
23+
experimental: true
24+
- name: Setup Swift
25+
uses: SwiftyLab/setup-swift@latest
26+
with:
27+
swift-version: 6.0.3
28+
- name: Build docs
29+
run: mise run docs:build

.mise/tasks/docs/build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# mise description="Build docs"
3+
set -euo pipefail
4+
5+
swift package --package-path $MISE_PROJECT_ROOT --allow-writing-to-directory .build/documentation generate-documentation --disable-indexing --output-path .build/documentation --transform-for-static-hosting --enable-experimental-combined-documentation --target XcodeGraph --target XcodeGraphMapper

CHANGELOG.md

Lines changed: 1 addition & 1 deletion

Package.resolved

Lines changed: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let targets: [Target] = [
3333
]
3434
),
3535
.target(
36-
name: "XcodeProjMapper",
36+
name: "XcodeGraphMapper",
3737
dependencies: [
3838
"XcodeGraph",
3939
"XcodeMetadata",
@@ -53,9 +53,9 @@ let targets: [Target] = [
5353
]
5454
),
5555
.testTarget(
56-
name: "XcodeProjMapperTests",
56+
name: "XcodeGraphMapperTests",
5757
dependencies: [
58-
"XcodeProjMapper",
58+
"XcodeGraphMapper",
5959
.product(name: "FileSystem", package: "FileSystem"),
6060
],
6161
swiftSettings: [
@@ -72,7 +72,7 @@ let package = Package(
7272
name: "XcodeGraph",
7373
targets: ["XcodeGraph"]
7474
),
75-
.library(name: "XcodeProjMapper", targets: ["XcodeProjMapper"]),
75+
.library(name: "XcodeGraphMapper", targets: ["XcodeGraphMapper"]),
7676
],
7777
dependencies: [
7878
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.7")),
@@ -83,6 +83,7 @@ let package = Package(
8383
.package(url: "https://github.com/apple/swift-service-context", .upToNextMajor(from: "1.0.0")),
8484
.package(url: "https://github.com/Kolos65/Mockable.git", .upToNextMajor(from: "0.0.11")),
8585
.package(url: "https://github.com/p-x9/MachOKit", .upToNextMajor(from: "0.28.0")),
86+
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
8687
],
8788
targets: targets
8889
)

README.md

Lines changed: 2 additions & 0 deletions

Sources/XcodeProjMapper/Documentation.docc/XcodeProjMapper.md renamed to Sources/XcodeGraphMapper/Documentation.docc/XcodeProjMapper.md

Lines changed: 3 additions & 3 deletions

Sources/XcodeProjMapper/Extensions/PBXProject+Extensions.swift renamed to Sources/XcodeGraphMapper/Extensions/PBXProject+Extensions.swift

File renamed without changes.

0 commit comments

Comments
 (0)