-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
85 lines (83 loc) · 2.28 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.6
import PackageDescription
let package = Package(
name: "GithubGraphqlClient",
platforms: [
.macOS(.v11),
],
products: [
.library(
name: "GithubApiClient",
targets: ["GithubApiClient"]
),
.library(
name: "GithubGraphqlQueryable",
targets: ["GithubGraphqlQueryable"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.0"),
.package(url: "https://github.com/swift-server/async-http-client", from: "1.11.0"),
.package(url: "https://github.com/MPLew-is/deep-codable", branch: "main"),
.package(url: "https://github.com/vapor/jwt-kit", from: "4.0.0"),
.package(url: "https://github.com/jpsim/Yams", from: "5.0.0"),
],
targets: [
.target(
name: "GithubApiClient",
dependencies: [
"GithubGraphqlQueryable",
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "DeepCodable", package: "deep-codable"),
.product(name: "JWTKit", package: "jwt-kit"),
]
),
.executableTarget(
name: "GithubActionsWebhookClient",
dependencies: [
"GithubApiClient",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "Yams", package: "Yams"),
],
path: "Examples/GithubActionsWebhookClient",
exclude: [
"ReadMe.md",
"example-workflow-light.png",
"example-workflow-dark.png",
"config.yaml",
"config.example.yaml",
"print-payload.yaml",
"payload.example.json",
]
),
.target(
name: "GithubGraphqlQueryable",
dependencies: [
.product(name: "DeepCodable", package: "deep-codable"),
]
),
.testTarget(
name: "GithubGraphqlQueryableTests",
dependencies: ["GithubGraphqlQueryable"]
),
.executableTarget(
name: "GithubProjectsGraphqlClient",
dependencies: [
"GithubApiClient",
"GithubGraphqlQueryable",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "Yams", package: "Yams"),
],
path: "Examples/GithubProjectsGraphqlClient",
exclude: [
"ReadMe.md",
"example-output-light.png",
"example-output-dark.png",
"config.yaml",
"config.example.yaml",
]
),
]
)