-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
52 lines (52 loc) · 1.76 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Swiftcraft",
platforms: [
.macOS(.v10_10),
],
products: [
.executable(name: "Swiftcraft", targets: ["Swiftcraft"]),
.library(name: "SwiftcraftLibrary", targets: ["SwiftcraftLibrary"]),
],
dependencies: [
.package(url: "https://github.com/swiftpackages/DotEnv.git", from: "3.0.0"),
.package(url: "https://github.com/onevcat/Rainbow", from: "3.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.23.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
],
targets: [
.target(
name: "Swiftcraft",
dependencies: [
"SwiftcraftLibrary",
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "Rainbow", package: "Rainbow"),
]
),
.target(
name: "SwiftcraftLibrary",
dependencies: [
.product(name: "DotEnv", package: "DotEnv"),
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "Rainbow", package: "Rainbow"),
]
),
.testTarget(
name: "SwiftcraftLibraryTests",
dependencies: [
"SwiftcraftLibrary",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOTestUtils", package: "swift-nio"),
]
),
.testTarget(
name: "SwiftcraftTests",
dependencies: [
"Swiftcraft",
]
),
]
)