-
-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathPackage.swift
More file actions
57 lines (55 loc) · 1.92 KB
/
Package.swift
File metadata and controls
57 lines (55 loc) · 1.92 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
// swift-tools-version:6.1
import PackageDescription
let package = Package(
name: "toolbox",
platforms: [
.macOS(.v15)
],
products: [
.executable(name: "vapor", targets: ["VaporToolbox"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.6.2"),
.package(url: "https://github.com/vapor/console-kit.git", exact: "5.0.0-alpha.1"),
.package(url: "https://github.com/swiftlang/swift-subprocess.git", .upToNextMinor(from: "0.2.1")),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.2"),
.package(url: "https://github.com/jpsim/Yams.git", from: "6.2.0"),
],
targets: [
.executableTarget(
name: "VaporToolbox",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "ConsoleKit", package: "console-kit"),
.product(name: "Subprocess", package: "swift-subprocess"),
.product(name: "Mustache", package: "swift-mustache"),
.product(name: "Yams", package: "yams"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "VaporToolboxTests",
dependencies: [
.target(name: "VaporToolbox"),
.target(name: "BuildToolbox"),
],
resources: [
.copy("Manifests")
],
swiftSettings: swiftSettings
),
.executableTarget(
name: "BuildToolbox",
dependencies: [
.product(name: "Subprocess", package: "swift-subprocess")
],
swiftSettings: swiftSettings
),
]
)
var swiftSettings: [SwiftSetting] {
[
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
]
}