-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
50 lines (46 loc) · 1.3 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
// swift-tools-version:5.5
import PackageDescription
let isLocalDebug = true
let package = Package(
name: "DevJourneyBlog",
platforms: [.macOS(.v12)],
products: [
.executable(
name: "DevJourneyBlog",
targets: ["DevJourneyBlog"]
),
],
dependencies: [
.package(name: "Publish", path: "./Publish"),
.package(url: "https://github.com/JohnSundell/Splash", from: "0.16.0"),
// .package(name: "ReadingTimePublishPlugin", url: "https://github.com/alexito4/ReadingTimePublishPlugin", from: "0.2.0"),
],
targets: [
.executableTarget(
name: "DevJourneyBlog",
dependencies: [
"Publish",
"Splash",
// "ReadingTimePublishPlugin",
],
path: "Sources",
resources: [
.process("Resources/Markdown"),
]
),
.testTarget(
name: "DevJourneyBlogTests",
dependencies: ["DevJourneyBlog"],
path: "Tests"
),
]
)
//if isLocalDebug {
// package.dependencies += [
// .package(path: "../Publish"),
// ]
//} else {
// package.dependencies += [
// .package(url: "https://github.com/hanleylee/Publish", .branchItem("master")),
// ]
//}