-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
76 lines (66 loc) · 1.72 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "Ginny",
platforms: [.macOS(.v12)],
products: [
.executable(
name: "Example",
targets: ["Example"]),
.library(
name: "Ginny",
targets: ["Ginny"]),
.executable(
name: "GinnyCLI",
targets: ["GinnyCLI"]),
.plugin(
name: "GinnyPlugin",
targets: ["GinnyPlugin"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "0.50800.0-SNAPSHOT-2022-12-29-a"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.7.0"),
],
targets: [
.executableTarget(
name: "Example",
dependencies: [
"Ginny",
.product(name: "Vapor", package: "Vapor"),
],
plugins: [
.plugin(name: "GinnyPlugin")
]),
.target(
name: "Ginny",
dependencies: [
.product(name: "Vapor", package: "Vapor")
]),
.testTarget(
name: "GinnyTests",
dependencies: [
"Ginny",
.product(name: "XCTVapor", package: "vapor"),
]),
.executableTarget(
name: "GinnyCLI",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "Vapor", package: "Vapor"),
]),
.testTarget(
name: "GinnyCLITests",
dependencies: [
"GinnyCLI"
]),
.plugin(
name: "GinnyPlugin",
capability: .buildTool(),
dependencies: [
"GinnyCLI"
]),
]
)