Add database dependencies

This commit is contained in:
Christoph Hagen 2021-12-22 22:10:26 +01:00
parent 8e20a0daca
commit fcc1d21e5f

View File

@ -7,14 +7,17 @@ let package = Package(
.macOS(.v10_15)
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(name: "vapor", url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(name: "fluent", url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(name: "fluent-sqlite-driver", url: "https://github.com/vapor/fluent-sqlite.git", from: "4.0.0")
],
targets: [
.target(
name: "App",
dependencies: [
.product(name: "Vapor", package: "vapor")
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Vapor", package: "vapor"),
],
swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of
@ -24,9 +27,9 @@ let package = Package(
]
),
.executableTarget(name: "Run", dependencies: [.target(name: "App")]),
.testTarget(name: "AppTests", dependencies: [
.target(name: "App"),
.product(name: "XCTVapor", package: "vapor"),
])
// .testTarget(name: "AppTests", dependencies: [
// .target(name: "App"),
// .product(name: "XCTVapor", package: "vapor"),
// ])
]
)