-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
130 lines (125 loc) · 4.21 KB
/
Copy pathPackage.swift
File metadata and controls
130 lines (125 loc) · 4.21 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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// swift-tools-version:6.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swiftlint:disable explicit_top_level_acl
// swiftlint:disable prefixed_toplevel_constant
// swiftlint:disable explicit_acl
import PackageDescription
let package = Package(
name: "BrightDigit",
platforms: [
// Raised from .v13 for issue #44: ConfigKeyKit 1.0.0-beta.1 requires macOS 15.
// Deploy target is Linux (no platform floor), so this only affects local
// macOS development/builds. See Documentation/Migration/44-config-migration.md.
.macOS(.v15)
],
products: [
.executable(
name: "brightdigitwg",
targets: ["brightdigitwg"]
),
.library(name: "ContributeMailchimp", targets: ["ContributeMailchimp"]),
.library(name: "BrightDigitPodcast", targets: ["BrightDigitPodcast"]),
.library(name: "ContributeYouTube", targets: ["ContributeYouTube"]),
.library(name: "ContributeRSS", targets: ["ContributeRSS"]),
.library(name: "PublishType", targets: ["PublishType"])
],
dependencies: [
.package(path: "Packages/Publish/Publish"),
.package(path: "Packages/Publish/SplashPublishPlugin"),
.package(path: "Packages/BrightDigit/YoutubePublishPlugin"),
.package(path: "Packages/Plugins/ReadingTimePublishPlugin"),
.package(path: "Packages/BrightDigit/SwiftTube"),
.package(path: "Packages/BrightDigit/Spinetail"),
.package(path: "Packages/BrightDigit/SyndiKit"),
// .package(url: "https://github.com/BrightDigit/Options.git", from: "0.2.0"),
.package(path: "Packages/BrightDigit/NPMPublishPlugin"),
.package(path: "Packages/BrightDigit/Contribute"),
.package(path: "Packages/BrightDigit/ContributeWordPress"),
.package(path: "Packages/BrightDigit/TransistorPublishPlugin"),
.package(url: "https://github.com/jpsim/Yams.git", from: "6.0.0"),
.package(path: "Packages/BrightDigit/ConfigKeyKit"),
.package(
url: "https://github.com/apple/swift-configuration",
from: "1.0.0",
traits: [.defaults, "CommandLineArguments"]
)
// #40: swift-markdown is the Publish markdown front end — it replaced Ink's
// hand-written `Reader` parser inside the vendored `Ink` package, which
// declares its own swift-markdown dependency (pinned to `branch: "main"`) and
// retains its HTML emitter + public API. That transitive dependency pins the
// revision for the whole workspace, so no root-level declaration is needed
// here (a redundant one is "not used by any target" and SwiftPM warns on it).
],
targets: [
.executableTarget(
name: "brightdigitwg",
dependencies: ["BrightDigitArgs"]
),
.target(
name: "BrightDigitArgs",
dependencies: [
"BrightDigitSite",
"BrightDigitPodcast",
"ContributeYouTube",
"ContributeRSS",
"ContributeMailchimp",
"ContributeWordPress",
.product(name: "Spinetail", package: "Spinetail"),
.product(name: "ConfigKeyKit", package: "ConfigKeyKit"),
.product(name: "Configuration", package: "swift-configuration"),
]
),
.target(
name: "BrightDigitSite",
dependencies: [
"Publish",
"SplashPublishPlugin",
"YoutubePublishPlugin",
"ReadingTimePublishPlugin",
// "Options",
"PublishType",
"TransistorPublishPlugin",
"NPMPublishPlugin"
]
),
.target(
name: "BrightDigitPodcast",
dependencies: ["ContributeYouTube", "ContributeRSS"]
),
.target(
name: "ContributeMailchimp",
dependencies: [
"Contribute",
.product(name: "Spinetail", package: "Spinetail")
]
),
.target(
name: "ContributeYouTube",
dependencies: ["Contribute", "SwiftTube"]
),
.target(
name: "ContributeRSS",
dependencies: ["Contribute", "SyndiKit"]
),
.target(
name: "PublishType",
dependencies: [
"Publish"
]
),
.testTarget(
name: "BrightDigitSiteTests",
dependencies: [
"Yams",
"BrightDigitSite"
]
),
.testTarget(
name: "BrightDigitArgsTests",
dependencies: [
"BrightDigitArgs",
"BrightDigitPodcast"
]
)
]
)