forked from airbnb/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
60 lines (55 loc) · 1.93 KB
/
Package.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
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
// swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "RakuyoSwift",
platforms: [.macOS(.v13)],
products: [
.plugin(name: "FormatSwift", targets: ["FormatSwift"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
],
targets: [
.plugin(
name: "FormatSwift",
capability: .command(
intent: .custom(
verb: "format",
description: "Formats Swift source files according to the Rakuyo Swift Style Guide"
),
permissions: [
.writeToPackageDirectory(reason: "Format Swift source files"),
]
),
dependencies: [
"RakuyoSwiftFormatTool",
"SwiftFormat",
"SwiftLintBinary",
]
),
.executableTarget(
name: "RakuyoSwiftFormatTool",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
resources: [
.process("rakuyo.swiftformat"),
.process("swiftlint.yml"),
]
),
.testTarget(
name: "RakuyoSwiftFormatToolTests",
dependencies: ["RakuyoSwiftFormatTool"]
),
.binaryTarget(
name: "SwiftFormat",
url: "https://github.com/nicklockwood/SwiftFormat/releases/download/0.54.2/SwiftFormat.artifactbundle.zip",
checksum: "eabe5aacab8a8359820a158f7af0aa222669983662e64bf7430767cd4d326e47"
),
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "722a705de1cf4e0e07f2b7d2f9f631f3a8b2635a0c84cce99f9677b38aa4a1d6"
),
]
)