-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
31 lines (26 loc) · 648 Bytes
/
Makefile
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
# Installs command line tools for development
.PHONY: install-dev
install-dev:
mix deps.get
.PHONY: test
test:
-mix test --cover --warnings-as-errors --exclude index_test
.PHONY: lint
lint:
-mix format --check-formatted
-mix dialyzer
-mix credo --strict
-find . -type f | grep -e "\.ex$$" -e "\.exs$$" | grep -v zdevelop/ | grep -v _build | grep -v deps | xargs misspell -error
.PHONY: format
format:
-mix format
.PHONY: doc
doc:
mix docs
sleep 1
open doc/index.html
# Installs command line tools for development
.PHONY: install-tools
install-tools:
# Catches misspelling
-go install github.com/client9/misspell/cmd/misspell@latest