-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deps.edn
102 lines (88 loc) · 3.07 KB
/
deps.edn
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
;; deps.edn
{:paths
["src"]
:deps
{org.clojure/clojure
{:mvn/version "1.12.0"}
;; A library for building Docker and OCI containers.
com.google.cloud.tools/jib-core
{:mvn/version "0.27.2"}
;; Support classes for jib container build tool.
com.google.cloud.tools/jib-build-plan
{:mvn/version "0.4.0"}
;; Micro-assertions framework for Clojure/Script.
com.taoensso/truss
{:mvn/version "1.12.0"}}
:aliases
{:test/env
{}
;; Include the kondo lint tool.
:lint/kondo
{:replace-deps {clj-kondo/clj-kondo {:mvn/version "RELEASE"}}}
;; Lint the entire classpath to teach clj-kondo what libraries we are using. Collects
;; configuration files when available, linting in parallel:
:lint/init
{:main-opts ["-m" "clj-kondo.main"
"--lint" "<classpath>"
"--dependencies"
"--parallel"
"--copy-configs"]}
;; Run the linter to check source code. Supply the --lint argument to specify what is to be
;; linted.
;;
;; $ clojure -M:lint/kondo:lint/check --lint src/
:lint/check
{:main-opts ["-m" "clj-kondo.main" "--parallel"]}
;; TEST
;; > call with :watch? true to start file watcher and re-run tests on saved changes
;;
;; $ clojure -M:test/run
:test/run
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha
{:mvn/version "1.91.1392"}}
:main-opts ["-m" "kaocha.runner"]
:exec-fn kaocha.runner/exec-fn
:exec-args {:randomize? false
:fail-fast? true}}
;; Include the style checker dependency.
:style/task
{:extra-deps
{mvxcvi/cljstyle {:git/url "https://github.com/greglook/cljstyle.git"
:git/sha "9be5bb9ed678a1e73670a3df3ece08bb22362441"}}}
;; Report format issues for current project code:
:style/check
{:main-opts ["--main" "cljstyle.main" "check"]}
;; Fix format issues for current project code:
:style/fix
{:main-opts ["--main" "cljstyle.main" "fix"]}
;; Invoke build tooling to run commands from build.clj:
:build/task
{:replace-paths ["."]
:replace-deps {io.github.clojure/tools.build
{:git/tag "v0.10.5"
:git/sha "2a21b7a"}}
:ns-default build}
;; Run a development REPL:
;; $ clojure -M:project/repl
;;
;; NB: we don't include cider/cider-nrepl here, instead rely on CIDER's auto-dependency injection
;; to inject the version that it requires. Auto-injection can be disabled if that causes issues
;; however.
:project/repl
{:extra-paths ["dev" "test"]
:extra-deps {;; A smarter way to reload Clojure code.
io.github.tonsky/clj-reload
{:mvn/version "0.7.1"}
;; A Clojure network REPL.
nrepl/nrepl
{:mvn/version "1.3.0"}
;; Binding/provider for NOP (discards all logging messages).
org.slf4j/slf4j-nop
{:mvn/version "2.0.16"}}
:main-opts
["--eval" "(apply require clojure.main/repl-requires)"
"--main" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware,portal.nrepl/wrap-portal]"
"--interactive"]}
}}