-
Notifications
You must be signed in to change notification settings - Fork 58
/
Package.swift
38 lines (35 loc) · 993 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.0
import PackageDescription
let package = Package(
name: "StencilSwiftKit",
products: [
.library(name: "StencilSwiftKit", targets: ["StencilSwiftKit"])
],
dependencies: [
.package(url: "https://github.com/shibapm/Komondor.git", .exact("1.1.3")),
.package(url: "https://github.com/stencilproject/Stencil.git", .upToNextMajor(from: "0.15.0"))
],
targets: [
.target(name: "StencilSwiftKit", dependencies: [
"Stencil"
]),
.testTarget(name: "StencilSwiftKitTests", dependencies: [
"StencilSwiftKit"
])
],
swiftLanguageVersions: [.v5]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration([
"komondor": [
"pre-commit": [
"PATH=\"~/.rbenv/shims:$PATH\" bundler exec rake lint:code",
"PATH=\"~/.rbenv/shims:$PATH\" bundler exec rake lint:tests"
],
"pre-push": [
"PATH=\"~/.rbenv/shims:$PATH\" bundle exec rake spm:test"
]
],
]).write()
#endif