-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 877 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 877 Bytes
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
.PHONY: help lint lint-fix format check build test setup-hooks
.DEFAULT_GOAL := help
help:
@echo "Monolith development targets:"
@echo " make build Compile the package"
@echo " make test Run swift test"
@echo " make lint Run SwiftLint"
@echo " make lint-fix Run SwiftLint --fix (autofix what it can)"
@echo " make format Run SwiftFormat (modifies files)"
@echo " make check Run SwiftLint --strict + SwiftFormat --lint (CI check)"
@echo " make setup-hooks Point git to Scripts/git-hooks for pre-commit"
@echo " make help Show this message"
lint:
swiftlint
lint-fix:
swiftlint --fix
format:
swiftformat .
check:
swiftlint --strict
swiftformat --lint .
build:
swift build
test:
swift test
setup-hooks:
git config core.hooksPath Scripts/git-hooks
@echo "Git hooks configured to Scripts/git-hooks/"