Skip to content

Commit 478cc81

Browse files
committed
Introduce swift-mod
1 parent 34dc64e commit 478cc81

File tree

4 files changed

+76
-3
lines changed

4 files changed

+76
-3
lines changed

.swift-mod.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
format:
2+
indent: 4
3+
lineBreakBeforeEachArgument: true
4+
targets:
5+
main:
6+
paths:
7+
- Sources
8+
rules:
9+
defaultAccessLevel:
10+
accessLevel: openOrPublic
11+
implicitInternal: true
12+
13+
defaultMemberwiseInitializer:
14+
implicitInitializer: true
15+
implicitInternal: true
16+
ignoreClassesWithInheritance: false

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
gems-install:
2-
bundle install --path vendor/bundle
2+
bundle config path vendor/bundle
3+
bundle install --jobs 4 --retry 3
34

45
docs-gen:
56
bundle exec jazzy --config .jazzy.yaml
@@ -8,10 +9,13 @@ lib-lint:
89
bundle exec pod lib lint
910

1011
pod-release:
11-
bundle exec pod trunk push --allow-warnings
12+
bundle exec pod trunk push DifferenceKit.podspec
1213

1314
test-linux:
14-
sh test-linux.sh
15+
docker run -v `pwd`:`pwd` -w `pwd` --rm swift:latest swift test
16+
17+
mod:
18+
swift run -c release --package-path ./Packages swift-mod
1519

1620
generate-linuxmain:
1721
swift test --generate-linuxmain

Packages/Package.resolved

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/Package.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// swift-tools-version:5.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Modules",
7+
dependencies: [
8+
.package(url: "https://github.com/ra1028/swift-mod.git", .exact("0.0.1")),
9+
]
10+
)

0 commit comments

Comments
 (0)