Skip to content

Instantly share code, notes, and snippets.

@standinga
Created April 12, 2019 15:18
Show Gist options
  • Save standinga/d0e2552324c9fae186ddb3634d95f7bc to your computer and use it in GitHub Desktop.
Save standinga/d0e2552324c9fae186ddb3634d95f7bc to your computer and use it in GitHub Desktop.
Vapor Package.swift with FluentMySQL
// swift-tools-version:4.2
import PackageDescription
let package = Package(
name: "server",
products: [
.library(name: "server", targets: ["App"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/fluent-mysql.git", from: "3.0.0"),
],
targets: [
.target(name: "App", dependencies: ["FluentMySQL", "Vapor"]),
.target(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App"])
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment