File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ xcuserdata
10
10
Package.resolved
11
11
.serverless
12
12
.vscode
13
- Makefile
14
13
.devcontainer
15
14
.amazonq
16
15
.kiro
Original file line number Diff line number Diff line change
1
+ CONTAINER ?= docker
2
+ # CONTAINER=container make build-linux # Uses container command
3
+
4
+ doc :
5
+ swift package generate-documentation --target AWSLambdaRuntime
6
+
7
+ preview :
8
+ swift package --disable-sandbox preview-documentation --target AWSLambdaRuntime
9
+
10
+ generate :
11
+ swift package --allow-writing-to-directory /Users/stormacq/Desktop/lambda-runtime-doc \
12
+ generate-documentation --target AWSLambdaRuntime --disable-indexing \
13
+ --output-path /Users/stormacq/Desktop/lambda-runtime-doc \
14
+ --transform-for-static-hosting \
15
+ --hosting-base-path lambda-runtime-doc
16
+
17
+ build-linux :
18
+ $(CONTAINER ) run --rm -v $$(pwd ) :/work swift:6.1 /bin/bash -c " cd /work && swift build && swift test"
19
+
20
+ build-linux-60 :
21
+ $(CONTAINER ) run --rm -v $$(pwd ) :/work swift:6.0 /bin/bash -c " cd /work && swift build && swift test"
22
+
23
+ build-linux-nightly :
24
+ $(CONTAINER ) run --rm -v $$(pwd ) :/work swiftlang/swift:nightly-6.2-jammy /bin/bash -c " cd /work && swift build && swift test"
25
+
26
+ format :
27
+ swift format format --parallel --recursive --in-place ./Package.swift Examples/ Sources/ Tests/
28
+
29
+ # how to dynamically add dependency to Package.swift
30
+
31
+ # for manifest in Package.swift Package@*.swift ; do
32
+ # if ! grep -E -i "https://github.com/(apple|swiftlang)/swift-docc-plugin" "$manifest" ; then
33
+ # cat <<EOF >> "$manifest"
34
+ # package.dependencies.append(
35
+ # .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "\(version)")
36
+ # )
37
+ # EOF
38
+ # fi
39
+ # done
You can’t perform that action at this time.
0 commit comments