Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created April 18, 2022 21:48
Show Gist options
  • Select an option

  • Save sturdysturge/87ec1d3c170ae51b782ea05c2c596e96 to your computer and use it in GitHub Desktop.

Select an option

Save sturdysturge/87ec1d3c170ae51b782ea05c2c596e96 to your computer and use it in GitHub Desktop.
import PackageDescription
let package = Package(
name: "hello",
platforms: [
.macOS(.v10_15)
],
dependencies: [
.package(url: "https://github.com/johnsundell/plot.git", from: "0.9.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
],
targets: [
.target(
name: "App",
dependencies: [
.product(name: "Plot", package: "plot"),
.product(name: "Vapor", package: "vapor")
],
swiftSettings: [
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]
),
.executableTarget(name: "Run", dependencies: [.target(name: "App")]),
.testTarget(name: "AppTests", dependencies: [
.target(name: "App"),
.product(name: "XCTVapor", package: "vapor"),
])
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment