2026-06-27 02:26:33 +00:00
|
|
|
// swift-tools-version:6.3
|
|
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
|
name: "Website",
|
|
|
|
|
platforms: [
|
|
|
|
|
.macOS(.v15),
|
|
|
|
|
.iOS(.v18),
|
|
|
|
|
.tvOS(.v18),
|
|
|
|
|
],
|
|
|
|
|
products: [
|
|
|
|
|
.executable(
|
|
|
|
|
name: "Website",
|
|
|
|
|
targets: [
|
|
|
|
|
"Website",
|
|
|
|
|
"WebsiteCore",
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
dependencies: [
|
|
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/hummingbird-project/hummingbird.git",
|
|
|
|
|
from: "2.25.0"
|
|
|
|
|
),
|
|
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/apple/swift-configuration.git",
|
|
|
|
|
from: "1.0.0",
|
|
|
|
|
traits: [
|
|
|
|
|
.defaults,
|
|
|
|
|
"CommandLineArguments",
|
|
|
|
|
]
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
targets: [
|
|
|
|
|
.executableTarget(
|
|
|
|
|
name: "Website",
|
|
|
|
|
dependencies: [
|
2026-06-27 10:59:32 +00:00
|
|
|
.byName(name: "WebsiteCore"),
|
2026-06-27 02:26:33 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Configuration",
|
|
|
|
|
package: "swift-configuration"
|
|
|
|
|
),
|
|
|
|
|
.product(
|
|
|
|
|
name: "Hummingbird",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
path: "Sources/App"
|
|
|
|
|
),
|
|
|
|
|
.target(
|
|
|
|
|
name: "WebsiteCore",
|
2026-06-27 10:59:32 +00:00
|
|
|
dependencies: [
|
|
|
|
|
.product(
|
|
|
|
|
name: "Configuration",
|
|
|
|
|
package: "swift-configuration"
|
|
|
|
|
),
|
2026-06-27 12:16:50 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Hummingbird",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
2026-06-27 10:59:32 +00:00
|
|
|
],
|
2026-06-27 02:26:33 +00:00
|
|
|
path: "Sources/Library"
|
|
|
|
|
),
|
|
|
|
|
.testTarget(
|
|
|
|
|
name: "WebsiteTests",
|
|
|
|
|
dependencies: [
|
2026-06-27 10:59:32 +00:00
|
|
|
.byName(name: "Website"),
|
2026-06-27 02:26:33 +00:00
|
|
|
.product(
|
|
|
|
|
name: "HummingbirdTesting",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
path: "Tests/App"
|
|
|
|
|
),
|
|
|
|
|
.testTarget(
|
|
|
|
|
name: "WebsiteCoreTests",
|
|
|
|
|
dependencies: [
|
|
|
|
|
.byName(name: "WebsiteCore"),
|
|
|
|
|
],
|
|
|
|
|
path: "Tests/Library"
|
|
|
|
|
),
|
|
|
|
|
]
|
|
|
|
|
)
|