-
Notifications
You must be signed in to change notification settings - Fork 9
/
Package.swift
98 lines (97 loc) · 3.22 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
86
87
88
89
90
91
92
93
94
95
96
97
98
// swift-tools-version:4.2
import PackageDescription
let package = Package(
name: "ApiCore",
products: [
.library(name: "ApiCore", targets: ["ApiCore"]),
.library(name: "FileCore", targets: ["FileCore"]),
.library(name: "ImageCore", targets: ["ImageCore"]),
.library(name: "ResourceCache", targets: ["ResourceCache"]),
.library(name: "ApiCoreTestTools", targets: ["ApiCoreTestTools"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/core.git", from: "3.4.1"),
.package(url: "https://github.com/vapor/crypto.git", from: "3.2.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/leaf.git", from: "3.0.0"),
.package(url: "https://github.com/twostraws/SwiftGD.git", .upToNextMinor(from: "2.3.0")),
.package(url: "https://github.com/LiveUI/S3.git", from: "3.0.0"),
.package(url: "https://github.com/LiveUI/MailCore.git", .upToNextMinor(from: "3.1.2")),
.package(url: "https://github.com/LiveUI/ErrorsCore.git", from: "0.1.0"),
.package(url: "https://github.com/LiveUI/VaporTestTools.git", from: "0.1.5"),
.package(url: "https://github.com/LiveUI/FluentTestTools.git", from: "0.1.0"),
.package(url: "https://github.com/vapor-community/Imperial.git", from: "0.12.0")
],
targets: [
.target(
name: "ApiCoreApp",
dependencies: [
"Vapor",
"ApiCore"
]
),
.target(
name: "ResourceCache",
dependencies: [
"Vapor"
]
),
.target(name: "ApiCoreRun", dependencies: [
"ApiCoreApp"
]
),
.target(name: "ApiCore", dependencies: [
"Vapor",
"Fluent",
"Crypto",
"Random",
"FluentPostgreSQL",
"ErrorsCore",
"JWT",
"MailCore",
"Leaf",
"FileCore",
"ImageCore",
"Imperial",
"ResourceCache"
]
),
.target(name: "FileCore", dependencies: [
"Vapor",
"ErrorsCore",
"S3"
]
),
.target(name: "ImageCore", dependencies: [
"Vapor",
"ErrorsCore",
"SwiftGD",
"COperatingSystem"
]
),
.target(
name: "ApiCoreTestTools",
dependencies: [
"Vapor",
"ApiCore",
"VaporTestTools",
"FluentTestTools",
"MailCoreTestTools"
]
),
.testTarget(name: "ApiCoreTests", dependencies: [
"Vapor",
"ErrorsCore",
"ApiCore",
"MailCore",
"VaporTestTools",
"FluentTestTools",
"ApiCoreTestTools",
"MailCoreTestTools"
]
)
]
)