-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
51 lines (50 loc) · 1.93 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "Rester",
platforms: [
.iOS(.v15),
.macOS(.v12),
.tvOS(.v15)
],
products: [
.executable(name: "rester", targets: ["Rester"]),
.library(name: "ResterCore", targets: ["ResterCore"])
],
dependencies: [
.package(name: "swift-argument-parser",
url: "/~https://github.com/apple/swift-argument-parser",
from: "1.0.0"),
.package(url: "/~https://github.com/crossroadlabs/Regex.git", from: "1.2.0"),
.package(url: "/~https://github.com/finestructure/ValueCodable", from: "0.1.0"),
.package(url: "/~https://github.com/jpsim/Yams.git", from: "2.0.0"),
.package(url: "/~https://github.com/mxcl/LegibleError.git", from: "1.0.0"),
.package(url: "/~https://github.com/mxcl/Path.swift.git", from: "0.0.0"),
.package(url: "/~https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
.package(url: "/~https://github.com/pointfreeco/swift-gen.git", from: "0.2.0"),
.package(url: "/~https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.8.1"),
],
targets: [
.executableTarget(
name: "Rester",
dependencies: ["ResterCore"]),
.target(
name: "ResterCore",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Gen", package: "swift-gen"),
"LegibleError",
.product(name: "Path", package: "Path.swift"),
"Rainbow", "Regex", "ValueCodable", "Yams"
]
),
.testTarget(
name: "ResterTests",
dependencies: [
"ResterCore",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: ["__Snapshots__", "TestData"]
),
]
)