-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
69 lines (63 loc) · 2.46 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
// swift-tools-version:6.0
import Foundation
import PackageDescription
extension String {
static let coenttbFluent: Self = "Coenttb Fluent"
static let coenttbVapor: Self = "Coenttb Vapor"
}
extension Target.Dependency {
static var coenttbVapor: Self { .target(name: .coenttbVapor) }
static var coenttbFluent: Self { .target(name: .coenttbFluent) }
}
extension Target.Dependency {
static var coenttbServer: Self { .product(name: "Coenttb Server", package: "coenttb-server") }
static var fluent: Self { .product(name: "Fluent", package: "fluent") }
static var rateLimiter: Self { .product(name: "RateLimiter", package: "coenttb-utils") }
static var postgresKit: Self { .product(name: "PostgresKit", package: "postgres-kit") }
static var vapor: Self { .product(name: "Vapor", package: "vapor") }
static var vaporRouting: Self { .product(name: "VaporRouting", package: "vapor-routing") }
static var fluentPostgresDriver: Self { .product(name: "FluentPostgresDriver", package: "fluent-postgres-driver") }
}
let package = Package(
name: "coenttb-server-vapor",
platforms: [
.macOS(.v14),
.iOS(.v17)
],
products: [
.library(name: .coenttbVapor, targets: [.coenttbVapor]),
.library(name: .coenttbFluent, targets: [.coenttbFluent]),
],
dependencies: [
.package(url: "https://github.com/coenttb/coenttb-utils.git", branch: "main"),
.package(url: "https://github.com/coenttb/coenttb-server.git", branch: "main"),
.package(url: "https://github.com/pointfreeco/vapor-routing.git", from: "0.1.3"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.8.0"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.7.2"),
.package(url: "https://github.com/vapor/postgres-kit", from: "2.12.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.102.1"),
],
targets: [
.target(
name: .coenttbFluent,
dependencies: [
.coenttbServer,
.fluent,
.fluentPostgresDriver,
.postgresKit,
.rateLimiter,
.vapor,
]
),
.target(
name: .coenttbVapor,
dependencies: [
.coenttbServer,
.vapor,
.vaporRouting,
.rateLimiter
]
),
],
swiftLanguageModes: [.v6]
)