forked from MakeAWishFoundation/SwiftyMocky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
95 lines (93 loc) · 2.96 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(macOS)
/// MacOS swiftymocky mackage
let package = Package(
name: "swiftymocky",
products: [
.executable(name: "swiftymocky", targets: ["SwiftyMockyCLI"]),
.library(name: "SwiftyMocky", targets: ["SwiftyMocky"]),
],
dependencies: [
.package(url: "https://github.com/JohnSundell/ShellOut.git", from: "2.0.0"),
.package(url: "https://github.com/tuist/xcodeproj.git", from: "6.5.0"),
.package(url: "https://github.com/jianstm/Crayon", from: "0.0.3"),
.package(url: "https://github.com/kylef/Commander", from: "0.8.0"),
.package(url: "https://github.com/kylef/PathKit", from: "0.9.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "2.0.0"),
],
targets: [
.target(
name: "SwiftyMocky",
path: "./Sources/Classes"
),
.target(
name: "SwiftyMockyCLI",
dependencies: [
"Commander",
"SwiftyMockyCLICore"
]),
.target(
name: "SwiftyMockyCLICore",
dependencies: [
"ShellOut",
"Crayon",
"xcodeproj",
"PathKit",
"Yams",
]),
.testTarget(
name: "SwiftyMockyCLICoreTests",
dependencies: [
"SwiftyMockyCLICore",
"SwiftyMocky"
]),
]
)
#else
/// Linux package. For now not really usable, until sourcery would be available too
let package = Package(
name: "swiftymocky",
products: [
.executable(name: "swiftymocky", targets: ["SwiftyMockyCLI"]),
.library(name: "SwiftyMocky", targets: ["SwiftyMocky"]),
],
dependencies: [
.package(url: "https://github.com/JohnSundell/ShellOut.git", from: "2.0.0"),
.package(url: "https://github.com/jianstm/Crayon", from: "0.0.1"),
.package(url: "https://github.com/kylef/Commander", from: "0.8.0"),
.package(url: "https://github.com/kylef/PathKit", from: "0.0.1"),
.package(url: "https://github.com/jpsim/Yams.git", from: "2.0.0"),
],
targets: [
.target(
name: "SwiftyMocky",
path: "./Sources/Classes"),
.target(
name: "SwiftyMockyCLI",
dependencies: [
"Commander",
"SwiftyMockyCLICore"
]),
.target(
name: "SwiftyMockyCLICore",
dependencies: [
"ShellOut",
"Crayon",
"PathKit",
"Yams",
],
exclude: [
"Commands/MacOS",
"Utils/MacOS",
]),
.testTarget(
name: "SwiftyMockyCLICoreTests",
dependencies: [
"SwiftyMockyCLICore",
"SwiftyMocky"
]),
]
)
#endif