generated from 21-DOT-DEV/swift-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
41 lines (39 loc) · 1.21 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
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "lefthook",
products: [
.executable(name: "lefthook", targets: ["LefthookExecutable"]),
.plugin(name: "LefthookPlugin",targets: ["LefthookPlugin"])
],
dependencies: [],
targets: [
.executableTarget(
name: "LefthookExecutable",
plugins: [
.plugin(name: "ArtifactExpander")
]
),
.plugin(
name: "ArtifactExpander",
capability: .buildTool(),
dependencies: ["lefthook"]
),
.plugin(
name: "LefthookPlugin",
capability: .command(
intent: .custom(
verb: "lefthook",
description: "Execute commands defined in lefthook.yml."
)
),
dependencies: ["lefthook"]
),
.binaryTarget(
name: "lefthook",
url: "https://github.com/csjones/lefthook-plugin/releases/download/1.10.7/lefthook.artifactbundle.zip",
checksum: "7e82947c156865290039c42b178f7d1e932eb0af04292a758eba7b0d1db9cf45"
),
],
swiftLanguageVersions: [.v5]
)