-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
112 lines (107 loc) · 3.4 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "DDDKit",
platforms: [
.macOS(.v15),
.iOS(.v16),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "DDDKit",
targets: ["DDDKit"]
),
.library(
name: "TestUtility",
targets: ["TestUtility"]
),
.library(
name: "DomainEventGenerator",
targets: ["DomainEventGenerator"]
),
.plugin(name: "DomainEventGeneratorPlugin", targets: [
"DomainEventGeneratorPlugin"
]),
.plugin(name: "ProjectionModelGeneratorPlugin", targets: [
"ProjectionModelGeneratorPlugin"
])
],
dependencies: [
.package(url: "https://github.com/gradyzhuo/EventStoreDB-Swift.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.1.3")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "DDDKit", dependencies: [
"DDDCore",
"EventSourcing",
"ESDBSupport",
"JBEventBus",
.product(name: "Logging", package: "swift-log")
]
),
.target(
name: "DDDCore"),
.target(
name: "EventSourcing",
dependencies: [
"DDDCore",
]
),
.target(
name: "ESDBSupport",
dependencies: [
"DDDCore",
"EventSourcing",
.product(name: "EventStoreDB", package: "eventstoredb-swift")
]
),
.target(
name: "JBEventBus",
dependencies: [
"DDDCore",
]
),
.target(
name: "TestUtility",
dependencies: [
"DDDCore",
.product(name: "EventStoreDB", package: "eventstoredb-swift"),
]
),
.testTarget(
name: "DDDCoreTests",
dependencies: ["DDDKit", "TestUtility"]
),
.target(name: "DomainEventGenerator",
dependencies: [
.product(name: "Yams", package: "yams")
]),
.executableTarget(name: "generate",
dependencies: [
"DomainEventGenerator",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.plugin(
name: "DomainEventGeneratorPlugin",
capability: .buildTool(),
dependencies: [
"generate"
]),
.plugin(
name: "ProjectionModelGeneratorPlugin",
capability: .buildTool(),
dependencies: [
"generate"
]),
],
swiftLanguageModes: [
.v5
]
)