Skip to content

Commit c615932

Browse files
committed
add public Makefile
1 parent 820d245 commit c615932

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Package.resolved
1212
.serverless
1313
.vscode
1414
.env
15-
Makefile
1615
**/temp
1716
node_modules
1817

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Makefile for library
2+
3+
format:
4+
swift format format --parallel --recursive --in-place ./Package.swift Examples/ Sources/ Tests/
5+
6+
preview-docs:
7+
# xcrun docc preview Sources/BedrockService/Docs.docc --output-path docc-output
8+
swift package --disable-sandbox preview-documentation --target BedrockService
9+
10+
# https://build-on-aws.github.io/swift-bedrock-library/documentation/bedrockservice/
11+
generate-docs:
12+
touch .nojekyll
13+
swift package \
14+
--allow-writing-to-directory ./docs \
15+
generate-documentation \
16+
--target BedrockService \
17+
--disable-indexing \
18+
--transform-for-static-hosting \
19+
--hosting-base-path swift-bedrock-library \
20+
--output-path ./docs

0 commit comments

Comments
 (0)