-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Package.swift
executable file
·53 lines (49 loc) · 1.81 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
46
47
48
49
50
51
52
53
// swift-tools-version:5.7
import PackageDescription
let dependencies:[Package.Dependency] = [
.package(url: "https://github.com/vapor/vapor.git", .upToNextMinor(from: "4.65.2")),
.package(url: "https://github.com/vapor/leaf.git", .upToNextMinor(from: "4.2.1")),
.package(url: "https://github.com/apple/swift-tools-support-core.git", .upToNextMinor(from: "0.2.7")),
.package(url: "https://github.com/JohnSundell/Xgen", .upToNextMinor(from: "2.2.0")),
.package(url: "https://github.com/weichsel/ZIPFoundation.git", .upToNextMinor(from: "0.9.5"))
]
var targets:[Target] = [
.target(
name: "App",
dependencies: [
"BuildToolchainEngine",
.product(name: "Vapor", package: "vapor"),
.product(name: "Leaf", package: "leaf"),
.product(name: "Xgen", package: "xgen"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
.product(name: "SwiftToolsSupport", package: "swift-tools-support-core")
]),
.target(
name: "BuildToolchainEngine",
dependencies: [
.product(name: "SwiftToolsSupport", package: "swift-tools-support-core")
]),
.executableTarget(
name: "PlaygroundServer",
dependencies: [
"App",
.product(name: "Vapor", package: "vapor")
]),
.testTarget(
name: "AppTests",
dependencies: [
"App",
.product(name: "XCTVapor", package: "vapor")
])
]
var products: [Product] = [
.library(name: "BuildToolchainEngine", targets: ["BuildToolchainEngine"]),
.executable(name: "PlaygroundServer", targets: ["PlaygroundServer"])
]
let package = Package(
name: "PlaygroundServer",
platforms: [.macOS(.v12)],
products: products,
dependencies: dependencies,
targets: targets
)