-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
36 lines (32 loc) · 1.3 KB
/
Copy pathPackage.swift
File metadata and controls
36 lines (32 loc) · 1.3 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Seen",
platforms: [.macOS(.v15)],
products: [
.library(name: "SeenKit", targets: ["SeenKit"]),
.executable(name: "SeenApp", targets: ["SeenApp"]),
.executable(name: "seen", targets: ["seen-cli"]),
.executable(name: "SeenTests", targets: ["SeenTests"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
],
targets: [
// All logic. Domain/ is the frozen contract every other directory implements.
.target(name: "SeenKit"),
// Menu bar app shell: UI, settings, hotkey, composition root.
.executableTarget(name: "SeenApp", dependencies: ["SeenKit"]),
// `seen` CLI + `seen mcp` stdio shim, thin clients of the socket API.
.executableTarget(
name: "seen-cli",
dependencies: [
"SeenKit",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
// Executable test runner (`swift run SeenTests`). XCTest is unavailable
// with Command Line Tools alone, so tests are plain Swift assertions.
.executableTarget(name: "SeenTests", dependencies: ["SeenKit"]),
]
)