forked from nicklockwood/SwiftFormat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package@swift-5.6.swift
24 lines (23 loc) · 1.03 KB
/
Package@swift-5.6.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "SwiftFormat",
products: [
.executable(name: "swiftformat", targets: ["CommandLineTool"]),
.library(name: "SwiftFormat", targets: ["SwiftFormat"]),
.plugin(name: "SwiftFormatPlugin", targets: ["SwiftFormatPlugin"]),
],
targets: [
.executableTarget(name: "CommandLineTool", dependencies: ["SwiftFormat"], path: "CommandLineTool"),
.target(name: "SwiftFormat", path: "Sources"),
.testTarget(name: "SwiftFormatTests", dependencies: ["SwiftFormat"], path: "Tests"),
.plugin(name: "SwiftFormatPlugin",
capability: .command(
intent: .custom(verb: "swiftformat", description: "Formats Swift source files using SwiftFormat"),
permissions: [
.writeToPackageDirectory(reason: "This command reformats source files"),
]
),
dependencies: [.target(name: "CommandLineTool")]),
]
)