-
Notifications
You must be signed in to change notification settings - Fork 8
/
Package.swift
68 lines (63 loc) · 2.11 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
// swift-tools-version:5.2
import PackageDescription
let name = "Sublimate"
let package = Package(
name: name,
products: [
.library(
name: name,
targets: [name]),
.library(
name: "\(name)Vapor",
targets: ["\(name)Vapor"]),
.library(
name: "\(name)FluentKit",
targets: ["\(name)FluentKit"]),
],
dependencies: [
.package(url: "https://github.com/vapor/fluent", from: "4.0.0"),
.package(url: "https://github.com/apple/swift-nio", from: "2.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.3.0"),
.package(url: "https://github.com/vapor/fluent-kit", from: "1.7.0"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.0.0"),
],
targets: [
.target(
name: name,
dependencies: [
.target(name: "\(name)Vapor"),
.product(name: "Fluent", package: "fluent"),
]),
.target(
name: "\(name)Vapor",
dependencies: [
.target(name: "\(name)FluentKit"),
.product(name: "Vapor", package: "vapor"),
]),
.target(
name: "\(name)FluentKit",
dependencies: [
.target(name: "\(name)NIO"),
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQL", package: "fluent-kit"),
]),
.target(
name: "\(name)NIO",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
]),
.testTarget(
name: "Tests",
dependencies: [
.target(name: name),
.product(name: "XCTFluent", package: "fluent-kit"),
.product(name: "XCTVapor", package: "vapor"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver")
],
path: "Tests"),
]
)
package.platforms = [
.macOS(.v10_15)
]