From fcc1d21e5ff06c79530057619257375325cb0fa5 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Wed, 22 Dec 2021 22:10:26 +0100 Subject: [PATCH] Add database dependencies --- Package.swift | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index 61a9d37..b88903c 100644 --- a/Package.swift +++ b/Package.swift @@ -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"), +// ]) ] )