-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
55 lines (47 loc) · 1.98 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
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "swift-vapor-layered-realworld-example",
platforms: [
.macOS(.v11)
],
products: [
.executable(name: "realworld", targets: ["realworld"]),
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
// 🔵 Swift ORM (queries, models, relations, etc)
.package(url: "https://github.com/vapor/fluent-mysql-driver", from: "4.0.0"),
// JWT issue and verify
.package(url: "https://github.com/vapor/jwt-kit", from: "4.0.0"),
// A simple package to convert strings to URL slugs.
.package(url: "https://github.com/twostraws/SwiftSlug", from: "0.3.0"),
// Crypto related functions and helpers for Swift implemented in Swift.
.package(url: "https://github.com/krzyzanowskim/CryptoSwift", from: "1.0.0"),
// Swift logging API
.package(url: "https://github.com/apple/swift-log", from: "1.0.0"),
],
targets: [
.target(name: "Infrastructure", dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "FluentMySQLDriver", package: "fluent-mysql-driver"),
.product(name: "JWTKit", package: "jwt-kit"),
.product(name: "SwiftSlug", package: "SwiftSlug"),
.product(name: "CryptoSwift", package: "CryptoSwift"),
.product(name: "Logging", package: "swift-log"),
]),
.target(name: "Domain", dependencies: [
.target(name: "Infrastructure"),
]),
.target(name: "Presentation", dependencies: [
.target(name: "Domain"),
]),
.executableTarget(name: "realworld", dependencies: [
.target(name: "Presentation"),
]),
.testTarget(name: "AppTests", dependencies: [
.target(name: "Presentation"),
])
]
)