Skip to content

Instantly share code, notes, and snippets.

@JoeyBodnar
Last active January 25, 2018 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeyBodnar/05a1986da7485d727f220326da9b8c4e to your computer and use it in GitHub Desktop.
Save JoeyBodnar/05a1986da7485d727f220326da9b8c4e to your computer and use it in GitHub Desktop.
Vapor React Pack.Swift for adding Leaf
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "vaporreactbackend",
products: [
.library(name: "App", targets: ["App"]),
.executable(name: "Run", targets: ["Run"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "2.1.0")),
.package(url: "https://github.com/vapor/fluent-provider.git", .upToNextMajor(from: "1.2.0")),
.package(url: "https://github.com/vapor/leaf-provider.git", .upToNextMajor(from: "1.1.0"))
],
targets: [
.target(
name: "App",
dependencies: ["Vapor", "FluentProvider", "LeafProvider"],
exclude: ["Config", "Public", "Resources"]
),
.target(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App", "Testing"])
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment