forked from WWDCNotes/WWDCNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
20 lines (19 loc) · 955 Bytes
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "WWDC Notes",
platforms: [.macOS(.v14)],
products: [
.library(name: "WWDCNotes", targets: ["WWDCNotes"]),
.executable(name: "generate-metadata", targets: ["generate-metadata"]), // run on CI before each deployment, files not committed
.executable(name: "generate-session-stubs", targets: ["generate-session-stubs"]), // run manually and commit files – once a year
.library(name: "Sessions", targets: ["Sessions"]), // internal helper
],
dependencies: [.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")],
targets: [
.target(name: "WWDCNotes"),
.executableTarget(name: "generate-metadata", dependencies: ["Sessions"]),
.executableTarget(name: "generate-session-stubs", dependencies: ["Sessions"]),
.target(name: "Sessions", resources: [.copy("sessions.json")]),
]
)