Skip to content

Commit 989983e

Browse files
authored
Add Tuist support and Example project (#224)
1 parent 2d5c015 commit 989983e

15 files changed

Lines changed: 175 additions & 354 deletions

File tree

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ build/
1515
.ag_repo/
1616
.oag_repo/
1717
.claude
18+
19+
# Tuist
20+
Derived/
21+
Tuist/.build/
22+
*.xcodeproj
23+
*.xcworkspace
24+
*.xcframework

‎Example/.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Tuist generated files
2+
*.xcodeproj
3+
*.xcworkspace
4+
Derived/
5+
build/
6+
.build

‎Example/Project.swift‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import ProjectDescription
2+
3+
let project = Project(
4+
name: "Example",
5+
targets: [
6+
.target(
7+
name: "Example",
8+
destinations: [.mac],
9+
product: .commandLineTool,
10+
bundleId: "org.OpenSwiftUIProject.OpenAttributeGraph.Example",
11+
deploymentTargets: .macOS("15.0"),
12+
sources: ["Sources/**"],
13+
dependencies: [
14+
.external(name: "OpenAttributeGraph"),
15+
]
16+
),
17+
]
18+
)

‎Example/Sources/main.swift‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import OpenAttributeGraph
2+
3+
let _ = Graph()
4+
print("OpenAttributeGraph Example: Graph created successfully")

‎Example/Tuist.swift‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ProjectDescription
2+
3+
let tuist = Tuist(
4+
project: .tuist()
5+
)

‎Example/Tuist/Package.swift‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// swift-tools-version: 6.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "ExampleDependencies",
7+
dependencies: [
8+
.package(path: "../../"),
9+
]
10+
)

0 commit comments

Comments
 (0)