-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
38 lines (34 loc) · 964 Bytes
/
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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Zipper",
products: [
.library(name: "Zipper", targets: ["Zipper"]),
],
dependencies: [
.package(url: "https://github.com/shibapm/Komondor.git", from: "1.0.6"),
.package(url: "https://github.com/nicklockwood/SwiftFormat.git", from: "0.48.3"),
],
targets: [
.target(name: "Zipper"),
.testTarget(name: "ZipperTests", dependencies: ["Zipper"]),
],
swiftLanguageVersions: [.v5]
)
#if canImport(PackageConfig)
import PackageConfig
let paths = [
"./Package.swift",
"./Sources",
"./Tests",
].joined(separator: " ")
let config = PackageConfiguration([
"komondor": [
"pre-push": "swift test",
"pre-commit": [
"swift run swiftformat \(paths)",
"git add \(paths)",
],
],
]).write()
#endif