-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
43 lines (41 loc) · 1.35 KB
/
Package.swift
File metadata and controls
43 lines (41 loc) · 1.35 KB
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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "StarWars",
platforms: [
.macOS(.v13),
],
products: [
.library(
name: "StarWars",
targets: ["StarWars"]
),
],
dependencies: [
.package(name: "graphql-generator", path: "../.."),
.package(url: "https://github.com/GraphQLSwift/DataLoader", from: "2.0.0"),
.package(url: "https://github.com/GraphQLSwift/GraphQL", from: "4.1.0"),
.package(url: "https://github.com/swift-server/async-http-client", from: "1.0.0"),
],
targets: [
.target(
name: "StarWars",
dependencies: [
.product(name: "AsyncDataLoader", package: "DataLoader"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "GraphQL", package: "GraphQL"),
.product(name: "GraphQLGeneratorMacros", package: "graphql-generator"),
.product(name: "GraphQLGeneratorRuntime", package: "graphql-generator"),
],
plugins: [
.plugin(name: "GraphQLGeneratorPlugin", package: "graphql-generator"),
]
),
.testTarget(
name: "StarWarsTests",
dependencies: [
"StarWars",
]
),
]
)