forked from CreateAPI/CreateAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (36 loc) · 1.47 KB
/
Package.swift
File metadata and controls
38 lines (36 loc) · 1.47 KB
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
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "CreateAPI",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "create-api", targets: ["create-api"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.0.1"),
.package(url: "https://github.com/kean/OpenAPIKit", branch: "create-api"),
.package(url: "https://github.com/kean/Yams.git", branch: "main"),
.package(url: "https://github.com/Cosmo/GrammaticalNumber", from: "0.0.3"),
.package(url: "https://github.com/eonist/FileWatcher", from: "0.2.0")
],
targets: [
.executableTarget(
name: "create-api",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "Yams", package: "Yams"),
.product(name: "GrammaticalNumber", package: "GrammaticalNumber"),
.product(name: "FileWatcher", package: "FileWatcher")
],
path: "Sources/CreateAPI"
),
.testTarget(
name: "create-api-tests",
dependencies: ["create-api"],
path: "Tests/CreateAPITests",
resources: [.copy("Expected"), .copy("Specs")]
)
]
)