-
Notifications
You must be signed in to change notification settings - Fork 32
/
Package.swift
46 lines (42 loc) · 1.31 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
// swift-tools-version:4.2
import PackageDescription
let package = Package(
name: "Komondor",
products: [
.executable(name: "komondor", targets: ["Komondor"]),
],
dependencies: [
// User deps
.package(url: "https://github.com/shibapm/PackageConfig.git", .upToNextMajor(from: "1.0.1")),
.package(url: "https://github.com/JohnSundell/ShellOut.git", from: "2.1.0"),
// Dev deps
.package(url: "https://github.com/nicklockwood/SwiftFormat.git", from: "0.35.8"), // dev
.package(url: "https://github.com/Realm/SwiftLint.git", from: "0.28.1"), // dev
.package(url: "https://github.com/shibapm/Rocket", from: "1.2.1"), // dev
],
targets: [
.target(
name: "Komondor",
dependencies: ["PackageConfig", "ShellOut"]
),
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration([
"komondor": [
"pre-push": "swift build",
"pre-commit": [
"swift build",
"swift run swiftformat .",
"swift run swiftlint autocorrect --path Sources/",
"git add .",
],
],
"rocket": [
"after": [
"push",
],
],
]).write()
#endif