forked from chrs1885/SheetyColors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
30 lines (27 loc) · 1.01 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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "SheetyColors",
dependencies: [
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.40.4"),
.package(url: "https://github.com/Realm/SwiftLint", from: "0.31.0"),
.package(url: "https://github.com/orta/Komondor", from: "1.0.2"),
.package(url: "https://github.com/eneko/SourceDocs.git", from: "0.5.1"),
],
targets: [
.target(name: "SheetyColors_Example", dependencies: [], path: "Example", sources: ["SheetyColors/SheetType.swift"]),
]
)
#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