Files
hummingbird-docc/Package.swift
T
javier 854fd8e048 Project setup (#1)
This PR contains the work done to setup the project:
* Added the `hummingbird` and the `swift-dock-plugin` package dependencies to the `Package` file;
* Added the `Makefile` file with relevant tasks plus its related `.env` file;
* Added the `CONTRIBUTORS` and `LICENSE` files;
* Added the `README` file;
* Updated the `.gitignore` file.

Reviewed-on: rock-n-code/hummingbird-docc-middleware#1
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2025-09-18 16:05:29 +00:00

51 lines
1.4 KiB
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: DocCMiddleware.package,
platforms: [
.iOS(.v17),
.macCatalyst(.v17),
.macOS(.v14),
.tvOS(.v17),
.visionOS(.v1)
],
products: [
.library(
name: DocCMiddleware.package,
targets: [DocCMiddleware.target]
),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0"),
],
targets: [
.target(
name: DocCMiddleware.target,
dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
],
path: "Sources/DocCMiddleware",
swiftSettings: [.enableExperimentalFeature("StrictConcurrency=complete")]
),
.testTarget(
name: DocCMiddleware.test,
dependencies: [
.product(name: "HummingbirdTesting", package: "hummingbird"),
.byName(name: DocCMiddleware.target)
],
path: "Tests/DocCMiddleware"
),
]
)
// MARK: - Constants
enum DocCMiddleware {
static let package = "hummingbird-docc-middleware"
static let target = "DocCMiddleware"
static let test = "\(DocCMiddleware.target)Tests"
}