-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
46 lines (42 loc) · 1.19 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:5.6
import PackageDescription
let package = Package(
name: "MobileCI",
products: [
.library(
name: "MobileCI",
targets: ["MobileCI"]
)
],
dependencies: [
// Dev dependencies
.package(url: "https://github.com/shibapm/Komondor", from: "1.0.0"), // dev
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.40.14"), // dev
.package(url: "https://github.com/Realm/SwiftLint", from: "0.36.0") // dev
],
targets: [
.target(
name: "MobileCI",
dependencies: [],
exclude: [
"Tests",
"Sources/Supporting Files",
"Examples"
]
),
.testTarget(name: "MobileCITests", dependencies: ["MobileCI"]) // dev
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration([
"komondor": [
"pre-push": "swift test",
"pre-commit": [
"swift run swiftformat .",
"swift run swiftlint autocorrect --path Sources/",
"git add ."
]
]
]).write()
#endif