-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
36 lines (29 loc) · 1.06 KB
/
justfile
File metadata and controls
36 lines (29 loc) · 1.06 KB
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
# Development: watch and rebuild on changes
run: clean copy-docs symbol-graph
saga dev --ignore output.css --ignore "content/docs/*"
# Resolve SPM dependencies
resolve:
swift package resolve
# Compile without running
compile:
swift build --product Website -j 2
# Full build
build: clean copy-docs symbol-graph
swift run
# Copy DocC guide markdown files into content/docs/
copy-docs:
rm -rf content/docs
mkdir -p content/docs
cp .build/checkouts/Saga/Sources/Saga/Saga.docc/*.md content/docs/
mv content/docs/Saga.md content/docs/index.md
# Generate symbol graph from the Saga library
symbol-graph:
swift package --package-path .build/checkouts/Saga dump-symbol-graph --emit-extension-block-symbols 2>/dev/null || true
mkdir -p .build/symbolgraph
cp .build/checkouts/Saga/.build/*/symbolgraph/Saga.symbols.json .build/symbolgraph/
cp .build/checkouts/Saga/.build/*/symbolgraph/Saga@*.symbols.json .build/symbolgraph/ 2>/dev/null || true
# Clean build artifacts
clean:
rm -rf deploy .build/symbolgraph content/docs
format:
swiftformat -swift-version 6 .