-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
76 lines (64 loc) · 1.87 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.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SPM",
platforms: [
.macOS(.v10_15),
],
products: [
.executable(name: "spm", targets: [ "Console" ]),
],
dependencies: [
// Easily create interactive CLI tools
.package(url: "https://github.com/vapor/console-kit", from: "4.2.4"),
// Easily handle files & folders
.package(url: "https://github.com/JohnSundell/Files", from: "4.2.0"),
// Easily run shell commands
.package(url: "https://github.com/JohnSundell/ShellOut", from: "2.3.0"),
],
targets: [
// Console Entry Point (main.swift)
.target(
name: "Console",
dependencies: [
.product(name: "ConsoleKit", package: "console-kit"),
"Grapher",
]
),
// Shell Commands (Extensions to ShellOut)
.target(
name: "ShellCommands",
dependencies: [
"ShellOut",
]
),
.testTarget(
name: "ShellCommandTests",
dependencies: [
"ShellCommands",
],
exclude: [
"Fixtures"
]
),
// Grapher
.target(
name: "Grapher",
dependencies: [
.product(name: "ConsoleKit", package: "console-kit"),
"Files",
"ShellCommands",
]
),
.testTarget(
name: "GrapherTests",
dependencies: [
"Grapher",
],
exclude: [
"SampleProject"
]
),
]
)