-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
85 lines (83 loc) · 2.86 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
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "JSONAPI-OpenAPI",
platforms: [
.macOS(.v12),
],
products: [
.library(
name: "JSONAPIOpenAPI",
targets: ["JSONAPIOpenAPI"]),
.library(
name: "JSONAPISwiftGen",
targets: ["JSONAPISwiftGen"]),
.library(
name: "JSONAPIVizGen",
targets: ["JSONAPIVizGen"])
],
dependencies: [
.package(url: "https://github.com/mattpolzin/Sampleable.git", from: "2.0.0"),
.package(url: "https://github.com/mattpolzin/JSONAPI.git", from: "5.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "3.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIReflection.git", from: "2.0.0"),
.package(url: "https://github.com/typelift/SwiftCheck.git", .upToNextMinor(from: "0.12.0")),
.package(url: "https://github.com/apple/swift-format.git", from: "509.0.0"),
.package(url: "https://github.com/pointfreeco/swift-nonempty.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/mattpolzin/JSONAPIViz.git", exact: "0.0.6")
],
targets: [
.target(
name: "JSONAPIOpenAPI",
dependencies: [
"JSONAPI",
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "OpenAPIReflection30", package: "OpenAPIReflection"),
"Sampleable"
]
),
.testTarget(
name: "JSONAPIOpenAPITests",
dependencies: [
"JSONAPI",
.product(name: "JSONAPITesting", package: "JSONAPI"),
"JSONAPIOpenAPI",
"SwiftCheck"
]
),
.target(
name: "JSONAPISwiftGen",
dependencies: [
"JSONAPI",
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "SwiftFormat", package: "swift-format"),
.product(name: "SwiftFormatConfiguration", package: "swift-format"),
.product(name: "NonEmpty", package: "swift-nonempty")
]
),
.testTarget(
name: "JSONAPISwiftGenTests",
dependencies: [
"JSONAPISwiftGen",
.product(name: "JSONAPITesting", package: "JSONAPI"),
"JSONAPIOpenAPI"
]
),
.target(
name: "JSONAPIVizGen",
dependencies: [
"JSONAPISwiftGen",
"JSONAPIViz"
]
),
.testTarget(
name: "JSONAPIVizGenTests",
dependencies: [
"OpenAPIKit",
"JSONAPISwiftGen",
"JSONAPIVizGen"
]
)
],
swiftLanguageVersions: [.v5]
)