-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPackage.swift
48 lines (45 loc) · 1.79 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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "SheetyColors",
platforms: [
.iOS(.v11), .macOS(.v10_12),
],
products: [
.library(
name: "SheetyColors",
targets: ["SheetyColors"]
),
],
dependencies: [
.package(url: "https://github.com/chrs1885/Capable.git", from: "2.0.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.7.2"),
.package(url: "https://github.com/Quick/Quick.git", from: "2.2.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.7"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.44.6"),
.package(url: "https://github.com/Realm/SwiftLint", from: "0.39.1"),
.package(url: "https://github.com/orta/Komondor", from: "1.0.4"),
.package(url: "https://github.com/eneko/SourceDocs.git", from: "0.6.1"),
],
targets: [
.target(name: "SheetyColors_Example", dependencies: [], path: "Example", sources: ["SheetyColors/SheetType.swift"]),
.target(name: "SheetyColors", dependencies: ["Capable"], path: "SheetyColors"),
.testTarget(name: "SheetyColors_Tests", dependencies: ["SheetyColors", "Quick", "Nimble", "SnapshotTesting"], path: "Example/Tests"),
],
swiftLanguageVersions: [
.v5,
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfig([
"komondor": [
"pre-commit": [
"swift run swiftformat .",
"swift run swiftlint autocorrect --path SheetyColors/",
"swift run sourcedocs generate -- -workspace Example/SheetyColors.xcworkspace -scheme SheetyColors",
"git add .",
],
],
])
#endif