-
-
Notifications
You must be signed in to change notification settings - Fork 501
/
deps-deprecated.edn
609 lines (514 loc) · 26.5 KB
/
deps-deprecated.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
;; ---------------------------------------------------------
;; Clojure CLI Aliased deprecated
;;
;; Aliases once included in Practicalli Clojure CLI and
;; no longer used.
;; Aliases moved here as examples of how to write those aliases
;; although they will not be actively maintained
;; ---------------------------------------------------------
{:aliases
{;; ---------------------------------------------------
;; Development environment
;; DEPRECATED - use `:dev/reloaded`
;; Refresh the current namespace in a running REPL
:lib/tools-ns
{:extra-deps {org.clojure/tools.namespace {:mvn/version "1.4.4"}}}
;; DEPRECATED - use `:dev/reloaded`
:lib/reloaded
{:extra-deps {org.clojure/tools.namespace {:mvn/version "1.4.4"}
org.clojure/tools.deps.alpha {:git/url "https://github.com/clojure/tools.deps.alpha"
:git/sha "e4fb92eef724fa39e29b39cc2b1a850567d490dd"}
com.brunobonacci/mulog {:mvn/version "0.9.0"}}}
;; DEPRECATED
;; https://github.com/babashka/neil
;; Neil should be installed as a native binary
:lib/neil
{:extra-deps {io.github.babashka/neil {:git/tag "v0.1.47"
:git/sha "77288d4"}}
:main-opts ["-m" "babashka.neil"]}
;; ---------------------------------------------------
;; ---------------------------------------------------
;; REPL's
;; DEPRECATED - limited use without `:main-opts` configuration to start nREPL server
:lib/nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}}}
;; Simple nREPL server REPL, headless
;; call with -i flag to start interactive client
:repl/nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware]"
"--interactive"]}
;; Run an interactive Clojure REPL with nREPL connection and CIDER libraries
;; clojure -M:repl/cider
:repl/cider
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware]"
"--interactive"]}
;; DEPRECATED
;; - requires Nashorn which was removed from Java 11 onward
;; ClojureScript REPL with rebel readline with nrepl for editor connection
;; https://github.com/bhauman/rebel-readline/tree/master/rebel-readline-cljs
;; CIDER: run `cider-connect-cljs` and select REPL host and port, figwheel-main and dev build
;; Requires Nashorn ClojureScript REPL
:repl/rebel-cljs
{:extra-deps {org.clojure/clojurescript {:mvn/version "1.11.60"}
org.openjdk.nashorn/nashorn-core {:mvn/version "15.4"}
com.bhauman/figwheel-main {:mvn/version "0.2.18"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
:main-opts ["--main" "rebel-readline.cljs.main"
"-f" "rebel-readline.cljs.main/-main"]}
;; DEPRECATED
:repl/rebel-debug
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.40.0"}
com.billpiel/sayid {:mvn/version "0.1.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-e" "(apply require clojure.main/repl-requires)"
"--main" "nrepl.cmdline"
"--middleware" "[com.billpiel.sayid.nrepl-middleware/wrap-sayid,cider.nrepl/cider-middleware]"
"--interactive"
"-f" "rebel-readline.main/-main"]}
;; DEPRECATED
:repl/rebel-debug-refactor
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.40.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.9.0"}
com.billpiel/sayid {:mvn/version "0.1.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-e" "(apply require clojure.main/repl-requires)"
"--main" "nrepl.cmdline"
"--middleware" "[com.billpiel.sayid.nrepl-middleware/wrap-sayid,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"
"--interactive"
"-f" "rebel-readline.main/-main"]}
;; DEPRECATED - not connecting to remote repl state
;; clojure -M:repl/rebel-remote --host hostname --port 12345
:repl/rebel-remote
{:extra-deps {nrepl/nrepl {:mvn/version "1.1.0"}
cider/cider-nrepl {:mvn/version "0.44.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["--eval" "(apply require clojure.main/repl-requires)"
"--main" "nrepl.cmdline"
"--connect"
"--middleware" "[cider.nrepl/cider-middleware]"
"--interactive"
"-f" "rebel-readline.main/-main"]}
;; End of REPL's
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Alternative REPL's
;; Older Socket REPL approaches to review:
;; clojure -M:repl/socket-jvm-opts (lesser used approach)
:repl/socket-jvm-opts
{:jvm-opts ["-Dclojure.server.repl={:port,50505,:accept,clojure.core.server/repl}"]}
;; Clojure Socket REPL on an available port, displaying port number (container/cloud environments)
;; - specify -r to start a repl
:repl/socket-zero
{:jvm-opts ["-Dclojure.server.repl={:port,0,:accept,clojure.core.server/repl}"]
:main-opts ["-e" "(.getLocalPort,(get-in,@#'clojure.core.server/servers,[\"repl\",:socket]))"]}
;; ClojureScript (node) Socket REPL on port 55555:
;; clojure -M:repl/socket-cljs
:repl/socket-node
{:jvm-opts ["-Dclojure.server.repl={:port,55555,:accept,cljs.server.node/repl}"]}
;; ClojureScript (browser) Socket REPL on port 58585:
;; clojure -M:repl/socket-cljs
:repl/socket-browser
{:jvm-opts ["-Dclojure.server.repl={:port,58585,:accept,cljs.server.browser/repl}"]}
;; Requires nashorn in a version of ClojureScript
;; WARNING: stack trace - does not run TO DEPRECATE
:repl/rebel-figwheel
{:extra-deps {org.clojure/clojurescript {:mvn/version "1.9.946"} ; version contains cljs.repl.nashorn
nrepl/nrepl {:mvn/version "1.0.0"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
com.bhauman/figwheel-main {:mvn/version "0.2.18"}
cider/cider-nrepl {:mvn/version "0.28.7"}
cider/piggieback {:mvn/version "0.5.3"}}
:main-opts ["-m" "nrepl.cmdline"
"--interactive"
"--middleware" "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"
"-f" "rebel-readline.cljs.main/-main"]}
;; Start a Clojure Socket pREPL on port 40404:
;; clojure -M:repl/prepl
:repl/prepl
{:jvm-opts ["-Dclojure.server.repl={:port,40404,:accept,clojure.core.server/io-prepl}"]}
;; Start a ClojureScript Socket pREPL on port 44444:
:repl/prepl-cljs
;; clojure -M:repl/prepl-cljs
{:jvm-opts ["-Dclojure.server.repl={:port,44444,:accept,cljs.server.browser/prepl}"]}
;; End of Alternative REPL's
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Projects and dependencies
;; Convert Leiningen projects to Clojure CLI with depify
;; Use `lein pprint` when `project.clj` includes quoted variables or paths to resolve
;; `lein pprint | clojure -M:project/depify`
:project/depify
{:extra-deps {depify/depify {:git/url "https://github.com/hagmonk/depify"
:git/sha "b3f61517c860518c1990133aa6eb54caf1e4d591"}}
:main-opts ["--main" "depify.project"]}
:search/outdated
{:replace-paths ["."]
:replace-deps {com.github.liquidz/antq {:mvn/version "2.2.962"}
org.slf4j/slf4j-nop {:mvn/version "2.0.5"}}
:exec-fn antq.tool/outdated
:exec-args {:directory ["."] ; default
:exclude ["com.cognitect/rebl"
"org.openjfx/javafx-base"
"org.openjfx/javafx-controls"
"org.openjfx/javafx-fxml"
"org.openjfx/javafx-swing"
"org.openjfx/javafx-web"]
;; :focus ["com.github.liquidz/antq"]
:skip ["boot" "leiningen"]
:reporter "table" ; json edn format
:verbose false
:upgrade false
:force false}}
:hack/antq
{:replace-deps
{antq/antq {:local/root "/home/practicalli/projects/clojure/community-tools/antq"}}
:main-opts ["-m" "antq.core"]}
;; The classic project for checking maven based dependencies
;; clojure -M:search/outdated-mvn
;; DEPRECATE
:search/outdated-mvn
{:replace-paths []
:replace-deps {deps-ancient/deps-ancient {:mvn/version "0.0.5"}}
:main-opts ["-m" "deps-ancient.deps-ancient"]}
;; End of Projects and dependencies
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Test Runners
;; ClojureScript test runner
;; https://github.com/Olical/cljs-test-runner
:test/cljs
{:extra-paths ["test"]
:extra-deps {olical/cljs-test-runner {:mvn/version "3.8.0"}}
:main-opts ["-m" "cljs-test-runner.main"]}
;; End of Test Runners
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Middleware
;; - start a non-interactive REPL with a headless nREPL server
;; clojure -M:middleware/nrepl
:middleware/nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware]"]}
;; End of: Middleware
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Format
:format/cljfmt-check
{:extra-deps {cljfmt/cljfmt {:mvn/version "0.9.0"}}
:main-opts ["-m" "cljfmt.main" "check"]}
;; cljfmt-check - check/report formatting issues
:format/cljfmt-fix
{:extra-deps {cljfmt/cljfmt {:mvn/version "0.9.0"}}
:main-opts ["-m" "cljfmt.main" "fix"]}
;; End of Format
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Project Packaging
;; depstar - build jars, uberjars
;; https://github.com/seancorfield/depstar
;; over-ride the :main-class as the name is unlikely to match your project
;; Jar archive of the project
;; clojure -X:project/jar :main-class domain.application
;; clojure -X:project/jar :jar '"project-name.jar"' :main-class domain.application
:project/jar
{:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.303"}}
:exec-fn hf.depstar/jar
:exec-args {:jar "project.jar"
:aot true}}
;; Uberjar archive of the project, including Clojure runtime
;; clojure -X:project/uberjar :main-class domain.application
;; clojure -X:project/uberjar :jar '"project-name.jar"' :main-class domain.application
:project/uberjar
{:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.303"}}
:exec-fn hf.depstar/uberjar
:exec-args {:jar "uber.jar"
:aot true}}
;; End of project packaging
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Data inspectors / visualizers
;; REBL Data browser - TO DEPRECATE
;; https://github.com/practicalli/clojure-deps-edn#cognitect-rebl
;; http://practicalli.github.io/clojure/alternative-tools/clojure-tools/cognitect-rebl.html
;; Requires Clojure 1.10 or greater
;; Requires Cognitect dev-tools https://cognitect.com/dev-tools/index.html
;; :inspect/rebl-java8 (Oracle JDK 8 only)
;; :inspect/rebl (Any JDK 11 distribution - tested with OpenJDK)
;; :inspect/:rebl ;; for JDK 11+
;; {:extra-deps {com.cognitect/rebl {:mvn/version "0.9.245"}
;; org.openjfx/javafx-fxml {:mvn/version "15-ea+6"}
;; org.openjfx/javafx-controls {:mvn/version "15-ea+6"}
;; org.openjfx/javafx-swing {:mvn/version "15-ea+6"}
;; org.openjfx/javafx-base {:mvn/version "15-ea+6"}
;; org.openjfx/javafx-web {:mvn/version "15-ea+6"}}
;; :main-opts ["-m" "cognitect.rebl"]}
;; :rebl-jdk8 ;; for JDK 8
;; {:extra-deps {com.cognitect/rebl {:mvn/version "0.9.245"}}
;; :main-opts ["-m" "cognitect.rebl"]}}
;; Reveal - read evaluate visualize loop
;; A REPL environment with data visualization and exploration
;; http://practicalli.github.io/clojure/clojure-tools/data-browsers/reveal.html
;; clojure -X:inspect/reveal
;; Run with theme / font changes:
;; clojure -X:inspect/reveal-light
;; Use with rebel repl by adding and using tap>
;; clojure -M:inspect/reveal-rebel
;; clojure -M:inspect/reveal:rebel -J-Dvlaaad.reveal.prefs='{:theme :light :font-family "Ubuntu Mono" :font-size 32}'
;; rebel readline with reveal data visualization
;; NOTE: :repl/revel-reveal alias is very much a hack and not a good example to follow
;; clojure -M:repl/rebel-reveal
:repl/rebel-reveal
{:extra-deps
{vlaaad/reveal {:mvn/version "1.3.276"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-e" "(require,'rebel-readline.core),(require,'rebel-readline.clojure.line-reader),(require,'rebel-readline.clojure.service.local),(require,'rebel-readline.clojure.main),(require,'vlaaad.reveal)(rebel-readline.core/with-line-reader,(rebel-readline.clojure.line-reader/create,(rebel-readline.clojure.service.local/create)),(vlaaad.reveal/repl,:prompt,(fn,[]),:read,(rebel-readline.clojure.main/create-repl-read)))"]}
;; clojure -M:repl/reveal-light-rebel
:repl/rebel-reveal-light
{:extra-deps
{vlaaad/reveal {:mvn/version "1.3.276"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-e" "(require,'rebel-readline.core),(require,'rebel-readline.clojure.line-reader),(require,'rebel-readline.clojure.service.local),(require,'rebel-readline.clojure.main),(require,'vlaaad.reveal)(rebel-readline.core/with-line-reader,(rebel-readline.clojure.line-reader/create,(rebel-readline.clojure.service.local/create)),(vlaaad.reveal/repl,:prompt,(fn,[]),:read,(rebel-readline.clojure.main/create-repl-read)))"]}
:inspect/reveal
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}}
:exec-fn vlaaad.reveal/repl
:main-opts ["-m" "vlaaad.reveal" "repl"]}
:inspect/reveal-light
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}}
:exec-fn vlaaad.reveal/repl
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-m" "vlaaad.reveal" "repl"]}
;; Not sending all evaluations to Reveal
;; It does send tap> results to Reveal
;; :repl/reveal-rebel-nrepl
;; {:extra-deps {nrepl/nrepl {:mvn/version "0.9.0"}
;; cider/cider-nrepl {:mvn/version "0.28.7"}
;; vlaaad/reveal {:mvn/version "1.3.276"}
;; com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
;; :jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
;; :main-opts ["-m" "nrepl.cmdline"
;; "--middleware" "[cider.nrepl/cider-middleware,vlaaad.reveal.nrepl/middleware]"
;; "-f" "rebel-readline.main/-main"]}
:inspect/reveal-local ; Hacking the project
{:extra-deps {vlaaad/reveal
{:local/root "/home/practicalli/projects/clojure/visualization/reveal/"}}
:main-opts ["-m" "vlaaad.reveal" "repl"]}
;; Reveal with Clojure editors
;; clj -M:inspect/reveal-nrepl
;; add the -i flag for interactive REPL client
;; Reveal REPL with nrepl server, connect to from a Clojure aware editor
:inspect/reveal-nrepl
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}
nrepl/nrepl {:mvn/version "1.0.0"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[vlaaad.reveal.nrepl/middleware]"]}
;; Light version of :inspect/reveal-nrepl
:inspect/reveal-light-nrepl
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}
nrepl/nrepl {:mvn/version "1.0.0"}}
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[vlaaad.reveal.nrepl/middleware]"]}
;; Reveal with headless nrepl server and Emacs CIDER specific middleware
;; Use with `C-u cider-jack-in-clj` or `SPC u , '` on Spacemacs
;; Edit jack-in command: clojure -M:inspect/reveal-nrepl-cider
:inspect/reveal-cider
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}
nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[vlaaad.reveal.nrepl/middleware,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}
;; Light version of :inspect/reveal-nrepl-cider
:inspect/reveal-light-cider
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.276"}
nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}}
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[vlaaad.reveal.nrepl/middleware,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}
;; End of Data Inspectors
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Middleware
;; Run a REPL using nREPL server for access by cider-connect-clj
;; clojure -M:middleware/cider-clj
:middleware/cider-clj
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware]"]}
:middleware/cider-clj-refactor
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}
;; REPLACED: `:repl/cljs`
;; Run a REPL using nREPL server for access by cider-connect-cljs
;; clojure -M:middleware/cider-cljs
;; Using figwheel-main template and cider-connect-cljs: clojure -M:middleware/cider-cljs:fig
:middleware/cider-cljs
{:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.844"}
nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}
cider/piggieback {:mvn/version "0.5.3"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
;; nrebl.middleware - REBL with nREPL server
;; visualize evaluations over nREPL in REBL data browser (CIDER, Calva)
;; https://github.com/RickMoynihan/nrebl.middleware
;; Emacs cider `dir-locals.el` configuration
;; ((clojure-mode . ((cider-clojure-cli-global-options . "-M:lib/cider-nrepl:inspect/rebl:middleware/nrebl"))))
;; clojure -M:lib/cider-nrepl:inspect/rebl:middleware/nrebl
:middleware/nrebl
{:extra-deps {rickmoynihan/nrebl.middleware {:mvn/version "0.3.1"}}
:main-opts ["-e" "((requiring-resolve,'cognitect.rebl/ui))"
"-m" "nrepl.cmdline"
"--interactive"
"--middleware" "[nrebl.middleware/wrap-nrebl,cider.nrepl/cider-middleware]"]}
;; Supporting aliases for nrebl.middleware
:lib/cider-nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.28.7"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}}}
;; End of Middleware
;; ---------------------------------------------------
;; Testing frameworks
;; ---------------------------------------------------
;; Expectations test framework
;; https://github.com/clojure-expectations/clojure-test
;; Example usage:
;; clojure -M:expectations:test/cognitect
:lib/expectations
{:extra-deps {expectations/clojure-test {:mvn/version "1.2.1"}}}
;; Classic version not compatible with clojure.test and tools
;; https://github.com/clojure-expectations/expectations
:lib/expectations-classic
{:extra-deps {expectations/expectations {:mvn/version "2.1.10"}}}
;; End of Testing frameworks
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Test runners
;; Experiment: test using alternative configuration
:test/kaocha-global
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.71.1119"}}
:exec-fn kaocha.runner/exec-fn
:exec-args {:config-file ["~/.clojure/kaocha-global-tests.edn"]}}
;; clojure -X:test/kaocha
:test/kaocha
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.71.1119"}}
:main-opts ["-m" "kaocha.runner"]
:exec-fn kaocha.runner/exec-fn
:exec-args {}}
;; clojure -X:test/kaocha-watch
:test/kaocha-watch
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.71.1119"}}
:main-opts ["-m" "kaocha.runner" "--watch" "--fail-fast" "--skip-meta" ":slow"]
:exec-fn kaocha.runner/exec-fn
:exec-args {:watch? true
:randomize? false
:fail-fast? true}}
;; clojure -M:test/kaocha-cljs
:test/kaocha-cljs
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.71.1119"}
lambdaisland/kaocha-cljs {:mvn/version "1.4.130"}}
:main-opts ["-m" "kaocha.runner" "unit-cljs"]}
;; End of Test runners
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Linting/ static analysis
;; DEPRECATED - use as a tool
;; clj-kondo - comprehensive and fast linter
;; https://github.com/borkdude/clj-kondo/
:lint/clj-kondo
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2023.09.07"}}
:main-opts ["--main" "clj-kondo.main" "--lint" "src"]}
;; DEPRECATED - not used
;; Eastwood - lint tool based on tools.analyzer.jvm
:lint/eastwood
{:extra-deps {jonase/eastwood {:mvn/version "1.4.0"}}
;; Eastwood accurately infers source/test paths, so they are best left unspecified:
:main-opts ["--main" "eastwood.lint"]}
;; DEPRECATED - not used
;; kibit - suggest idiomatic use of Clojure
;; https://github.com/jonase/kibit/issues/221
:lint/idiom
{:replace-paths []
:replace-deps {tvaughan/kibit-runner {:mvn/version "1.0.1"}}
:main-opts ["--main" "kibit-runner.cmdline"]}
;; End of Linting/ static analysis
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Debug
;; DEPRECATED - requires middleware to be useful
:lib/sayid
{:extra-deps {com.billpiel/sayid {:mvn/version "0.1.0"}}}
;; ---------------------------------------------------
;; ---------------------------------------------------
;; Security
;; DEPRECATED
;; https://github.com/rm-hull/nvd-clojure
;; check all the jars in the classpath for known security vulnerabilities using the
;; National Vulnerability Database
;; clojure -T:security/nvd "" "$(clojure -Spath)"
:security/nvd
{:extra-deps {nvd-clojure/nvd-clojure {:mvn/version "3.2.0"}}
:main-opts ["-m" "nvd.task.check"]}
;; End of Security
;; ---------------------------------------------------
;; midje-runner
;; https://github.com/miorimmax/midje-runner
:test/midje
{:extra-paths ["test"]
:extra-deps {midge-runner/midje-runner
{:git/url "https://github.com/miorimmax/midje-runner.git"
:sha "ee9c2813e150ae6b3ea41b446b09ba40fc89bdc1"}}
:main-opts ["-m" "midje-runner.runner"]}
;; uberdeps - https://github.com/tonsky/uberdeps
;; recommend depstar until that is migrated into tools.build
:project/uberdeps
{:replace-paths []
:replace-deps {uberdeps/uberdeps {:mvn/version "1.1.4"}}
:main-opts ["-m" "uberdeps.uberjar"]}
;; ---------------------------------------------------
;; Hot loading dependencies - EXPERIMENTAL / APLPHA
;; ---------------------------------------------------
;; Hot loading is not officially part of tools.deps and could change in future
;; https://practical.li/clojure/alternative-tools/clojure-tools/hotload-libraries.html
;; Add new deps to a running REPL:
;; (require '[clojure.tools.deps.alpha.repl :refer [add-libs]])
;; (add-libs 'domain/library {:mvn/version "1.0.1"})
;; Git deps
;; (require '[clojure.tools.gitlibs :as gitlibs])
;; (defn load-master [lib]
;; (let [git (str "https://github.com/" lib ".git")]
;; (add-lib lib {:git/url git :sha (gitlibs/resolve git "master")})))
;; - e.g., using the GitHub path (not the usual Maven group/artifact):
;; (load-master 'clojure/tools.trace)
:alpha/hotload-socket
{:extra-deps {org.clojure/tools.deps.alpha
;; Latest commit on add-lib3 branch, don't update with :search/outdated
{:git/url "https://github.com/clojure/tools.deps.alpha"
:sha "e4fb92eef724fa39e29b39cc2b1a850567d490dd"}
;; Set logging implementation to no-operation
org.slf4j/slf4j-nop {:mvn/version "2.0.5"}}
;; DynamicClassLoader required when starting other processes via aliases, e.g. socket REPL or Cognitect's REBL
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"]}
#_()}}