Scaffold project structure

This commit is contained in:
T. R. Bernstein
2026-03-11 16:09:09 +01:00
commit 1a7e5ca5de
8 changed files with 224 additions and 0 deletions

46
Package.swift Normal file
View File

@@ -0,0 +1,46 @@
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Inotify",
platforms: [.macOS(.v13), .custom("Linux", versionString: "4.4.302")],
products: [
.library(
name: "Inotify",
targets: ["Inotify"]
),
.executable(
name: "task",
targets: ["TaskCLI"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.7.0"),
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.1.3"),
.package(url: "https://github.com/apple/swift-log", from: "1.10.1"),
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.3.0"),
.package(url: "https://github.com/tuist/Noora", from: "0.55.1")
],
targets: [
.target(
name: "Inotify",
dependencies: [
.product(name: "Logging", package: "swift-log"),
]
),
.testTarget(
name: "InotifyIntegrationTests",
dependencies: ["Inotify"],
),
.executableTarget(
name: "TaskCLI",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Subprocess", package: "swift-subprocess"),
.product(name: "Noora", package: "Noora")
]
)
]
)