-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
44 lines (42 loc) · 1.12 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "DocCMiddleware",
platforms: [
.iOS(.v15),
.macOS(.v12),
.tvOS(.v15),
.watchOS(.v8),
],
products: [
.library(name: "DocCMiddleware", targets: ["DocCMiddleware"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
// Development
.package(url: "https://github.com/swift-kipple/Tools", from: "0.3.6"),
],
targets: [
// Product Targets
.target(
name: "DocCMiddleware",
dependencies: [
.product(name: "Vapor", package: "vapor"),
]
),
// Test Targets
.testTarget(
name: "DocCMiddlewareTests",
dependencies: [
.target(name: "DocCMiddleware"),
.product(name: "XCTVapor", package: "vapor"),
]
),
]
)
#if swift(>=5.6)
// Add swift-docc-plugin if possible.
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
)
#endif