-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
52 lines (50 loc) · 1.7 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "LilliputWeb",
platforms: [
.macOS(.v10_15)
],
products: [
.executable(
name: "Run",
targets: ["Run"]
),
.library(
name: "LilliputWeb",
targets: ["LilliputWeb"]
),
],
dependencies: [
.package(url: "https://github.com/elegantchaos/Lilliput.git", from: "1.2.2"),
// 💧 Vapor.
.package(url: "https://github.com/vapor/vapor.git", from: "4.55.3"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.4.0"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.2.6"),
.package(url: "https://github.com/vapor/leaf.git", from: "4.1.5"),
],
targets: [
.target(
name: "LilliputWeb",
dependencies: [
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
.product(name: "Vapor", package: "vapor"),
.product(name: "Leaf", package: "leaf"),
.product(name: "Lilliput", package: "Lilliput"),
],
resources: [
.copy("Resources/Views")
]
),
.target(name: "Run", dependencies: [
.target(name: "LilliputWeb"),
.product(name: "LilliputExamples", package: "Lilliput"),
]),
.testTarget(name: "AppTests", dependencies: [
.target(name: "LilliputWeb"),
.product(name: "LilliputExamples", package: "Lilliput"),
.product(name: "XCTVapor", package: "vapor"),
])
]
)