Skip to content

Instantly share code, notes, and snippets.

@0xPr0xy
Created December 20, 2017 14:30
Show Gist options
  • Save 0xPr0xy/fe5f39d71f662be3217560636479176a to your computer and use it in GitHub Desktop.
Save 0xPr0xy/fe5f39d71f662be3217560636479176a to your computer and use it in GitHub Desktop.
Package swift
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "VaporBlog",
products: [
.library(name: "App", targets: ["App"]),
.executable(name: "Run", targets: ["Run"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "2.2.0")),
.package(url: "https://github.com/vapor/leaf-provider.git", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/vapor/fluent-provider.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/vapor/mysql-provider.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/vapor/auth-provider.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/nodes-vapor/slugify", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/vapor-community/markdown-provider.git", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/nodes-vapor/paginator.git", .upToNextMajor(from: "0.0.0"))
],
targets: [
.target(
name: "App",
dependencies: [
"Vapor",
"LeafProvider",
"FluentProvider",
"MySQLProvider",
"AuthProvider",
"MarkdownProvider",
"Slugify",
"Paginator"
],
exclude: [
"Config",
"Database",
"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