-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
47 lines (46 loc) · 1.55 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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "SwagGen",
products: [
.executable(name: "swaggen", targets: ["SwagGen"]),
.library(name: "SwagGenKit", targets: ["SwagGenKit"]),
.library(name: "Swagger", targets: ["Swagger"]),
],
dependencies: [
.package(url: "https://github.com/kylef/PathKit.git", from: "1.0.1"),
.package(url: "https://github.com/jakeheis/SwiftCLI", from: "6.0.0"),
.package(url: "https://github.com/SwiftGen/StencilSwiftKit.git", from: "2.7.2"),
.package(url: "https://github.com/jpsim/Yams.git", from: "4.0.0"),
.package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "4.1.0"),
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.1.0"),
],
targets: [
.target(name: "SwagGen", dependencies: [
"SwagGenKit",
"SwiftCLI",
"Rainbow",
"PathKit",
]),
.target(name: "SwagGenKit", dependencies: [
"Swagger",
"JSONUtilities",
"PathKit",
"StencilSwiftKit",
]),
.target(name: "Swagger", dependencies: [
"JSONUtilities",
"Yams",
"PathKit",
]),
.testTarget(name: "SwagGenKitTests", dependencies: [
"SwagGenKit",
"Spectre",
]),
.testTarget(name: "SwaggerTests", dependencies: [
"Swagger",
"Spectre",
]),
]
)