-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathPackage.swift
45 lines (43 loc) · 1.3 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
45
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "toolbox",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "vapor", targets: ["VaporToolbox"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.3.1"),
],
targets: [
.executableTarget(
name: "VaporToolbox",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Mustache", package: "swift-mustache"),
.product(name: "Yams", package: "yams"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "VaporToolboxTests",
dependencies: [
.target(name: "VaporToolbox")
],
resources: [
.copy("manifest.yml"),
.copy("manifest.json"),
],
swiftSettings: swiftSettings
),
]
)
var swiftSettings: [SwiftSetting] {
[
.enableUpcomingFeature("ExistentialAny")
]
}