-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
58 lines (57 loc) · 2.82 KB
/
Copy pathPackage.swift
File metadata and controls
58 lines (57 loc) · 2.82 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
50
51
52
53
54
55
56
57
58
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "auth-web",
platforms: [
.macOS(.v13)
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "4.99.0"),
// 🔴 Redis-backed session storage, shared with every other frontend that reads it.
.package(url: "https://github.com/vapor/redis.git", from: "4.10.0"),
// 🛡️ Fail-open Redis session driver - degrades to "treated as logged out" instead of
// 500ing when Redis is unreachable. 0.1.0 adds the idle/absolute expiry policy
// (platform's session-expiration-policy change).
.package(url: "https://github.com/sweetrpg/redis-session-driver.git", from: "0.1.0"),
// 🚧 admin-api maintenance-mode/banner client - fail-open by contract, never throws.
.package(url: "https://github.com/sweetrpg/admin-api-client.swift.git", branch: "develop"),
// 🩻 Distributed tracing API + OTLP exporter, matching the Go services' OTLP/HTTP
// export to the cluster's Tempo collector (docs/service-conventions.md's Telemetry
// section).
.package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.0.0"),
// 🌐 Framework-agnostic localization - see openspec/changes/full-localization-web-apps.
.package(url: "https://github.com/miroslavkovac/Lingo.git", from: "4.0.0"),
.package(url: "https://github.com/swift-otel/swift-otel.git", from: "0.8.0"),
],
targets: [
.executableTarget(
name: "App",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "Redis", package: "redis"),
.product(name: "RedisSessionDriver", package: "redis-session-driver"),
.product(name: "AdminAPIClient", package: "admin-api-client.swift"),
.product(name: "Tracing", package: "swift-distributed-tracing"),
.product(name: "OTel", package: "swift-otel"),
.product(name: "OTLPGRPC", package: "swift-otel"),
.product(name: "Lingo", package: "Lingo"),
],
resources: [
.copy("Resources/Localizations")
],
// No Leaf/rendered pages: every "log in" link across the suite points straight at
// /auth/login, which redirects immediately - this app has no page of its own to show.
swiftSettings: [
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]
),
.testTarget(
name: "AppTests",
dependencies: [
.target(name: "App"),
.product(name: "VaporTesting", package: "vapor"),
]
),
]
)