-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPackage.swift
More file actions
49 lines (46 loc) · 1.97 KB
/
Package.swift
File metadata and controls
49 lines (46 loc) · 1.97 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
44
45
46
47
48
49
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "nest",
platforms: [.macOS(.v13)],
products: [
.executable(name: "nest", targets: ["nest"]),
.library(name: "NestCLI", targets: ["NestCLI"]),
.library(name: "NestKit", targets: ["NestKit"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"),
.package(url: "https://github.com/weichsel/ZIPFoundation", from: "0.9.0"),
.package(url: "https://github.com/onevcat/Rainbow", from: "4.0.1"),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.1.3"),
.package(url: "https://github.com/mtj0928/swift-async-operations", from: "0.2.2"),
],
targets: [
.executableTarget(name: "nest", dependencies: [
"NestCLI",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]),
.target(name: "NestCLI", dependencies: [
"NestKit",
.product(name: "AsyncOperations", package: "swift-async-operations"),
.product(name: "Yams", package: "Yams")
]),
.target(name: "NestTestHelpers", dependencies: ["NestKit"]),
.target(name: "NestKit", dependencies: [
.product(name: "Logging", package: "swift-log"),
"Rainbow",
"ZIPFoundation",
.product(name: "HTTPTypesFoundation", package: "swift-http-types")
]),
// MARK: - Test targets
.testTarget(name: "NestTests", dependencies: ["nest"]),
.testTarget(
name: "NestCLITests",
dependencies: ["NestCLI", "NestTestHelpers"],
exclude: ["Resources/Fixtures"]
),
.testTarget(name: "NestKitTests", dependencies: ["NestKit", "NestTestHelpers"]),
]
)