-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (38 loc) · 1.21 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CP=$(shell clojure -A:dev -Spath)
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: repl-cljs
repl-cljs: ## Start cljs REPL via nbb
@npx nbb --classpath "$(CP)" nrepl-server
.PHONY: test
test: test-clj test-bb test-cljs test-nbb ## Run all tests
.PHONY: test-clj
test-clj: ## Run clj tests
clojure -M:dev:1.10:test-clj
clojure -M:dev:test-clj
.PHONY: test-bb
test-bb: ## Run babashka tests
@bb --classpath "$(CP)" bb_test_runner.clj
.PHONY: test-cljs
test-cljs: ## Run cljs tests
@clojure -M:dev:test-cljs
.PHONY: test-nbb
test-nbb: ## Run nbb tests
@npx nbb --classpath "$(CP)" bb_test_runner.clj
.PHONY: clean
clean: ## Clean
rm -rf node_modules target .cpcache .clj-kondo/.cache
.PHONY: lint
lint: ## Check lint errors and format errors
clj-kondo --lint src:test
cljstyle check
.PHONY: outdated
outdated: ## Show and upgrade outdated dependencies
clojure -M:outdated --upgrade
.PHONY: install
install: clean ## Install jar to the local Maven repository
clojure -T:build install
.PHONY: coverage
coverage: ## Show coverage
clojure -M:coverage:dev --src-ns-path=src --test-ns-path=test --codecov