-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
62 lines (57 loc) · 1.96 KB
/
Copy pathPackage.swift
File metadata and controls
62 lines (57 loc) · 1.96 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
// swift-tools-version:5.9
//
// SPM manifest used ONLY for `swift test`. The shipping binaries are still
// built by `swiftc` directly via build.sh — no Xcode, no SPM dependencies.
// Keeping SPM here lets us run a `swift test` suite over the testable bits
// (Hotkey parsing, ConfigFile, NudgeKind, EventStore) without restructuring
// the repo into Sources/<TargetName>/.
import PackageDescription
let package = Package(
name: "StackNudge",
platforms: [.macOS(.v13)],
products: [
.library(name: "StackNudgePanelCore", targets: ["StackNudgePanelCore"]),
],
targets: [
.target(
name: "StackNudgePanelCore",
path: ".",
exclude: [
// App entry points / resources are not library code.
"panel/main.swift",
"panel/Info.plist",
"panel/entitlements.plist",
"notifier",
// Top-level scripts, docs, and build artefacts.
"Makefile",
"build.sh",
"install.sh",
"uninstall.sh",
"notify.sh",
"notify.conf.example",
"README.md",
"LICENSE",
"NOTICE",
"PRIVACY.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"SECURITY.md",
"CHANGELOG.md",
// Directories not part of the testable surface.
"build",
"assets",
"phrases",
"hooks",
// Tests own this directory; declare here so SPM doesn't
// sweep the test sources into the library target.
"Tests",
],
sources: ["panel", "shared"]
),
.testTarget(
name: "StackNudgePanelCoreTests",
dependencies: ["StackNudgePanelCore"],
path: "Tests/StackNudgePanelCoreTests"
),
]
)