You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ _Since it is my personal file, it may make assumptions about my own environment.
14
14
15
15
With that caveat out of the way, here is some basic documentation about my tools and aliases (there are additional examples in the comments in the `deps.edn` file itself). _Note: I have recently cleaned this file up and removed a lot of aliases I no longer use!_
16
16
17
-
TL;DR: add the following dependency and then start a REPL with `clj -M:dev/repl` (optionally with other aliases to bring in more tooling):
17
+
TL;DR: add the following dependency and then start a REPL with `clj -M:dev/repl` (optionally with other aliases before it to bring in more tooling):
18
18
19
19
```clojure
20
20
:aliases
@@ -23,8 +23,12 @@ TL;DR: add the following dependency and then start a REPL with `clj -M:dev/repl`
There is also a `bin/repl` bash script that runs `clojure -M:1.12:portal:test:cider-nrepl:rebel:dev/repl`
29
+
to start an nREPL server with CIDER middleware, and then a Rebel Readline
30
+
interactive REPL, with Portal available (and `clojure.tools.logging`, if
31
+
present, patched to `tap>` all log messages for Portal).
28
32
29
33
## Basic Tools
30
34
@@ -126,7 +130,7 @@ To work with the Polylith command-line tool:
126
130
127
131
## The `:dev/repl` Alias
128
132
129
-
The `:dev/repl` alias calls `org.corfield.dev.repl/start-repl` in the [`repl.clj` file](https://github.com/seancorfield/dot-clojure/blob/develop/src/org/corfield/dev/repl.clj) from this repo. That does a number of things (see the `start-repl` docstring for more details):
133
+
The `:dev/repl` alias calls `org.corfield.dev.repl/-main` in the [`repl.clj` file](https://github.com/seancorfield/dot-clojure/blob/develop/src/org/corfield/dev/repl.clj) from this repo. That does a number of things (see the `-main` docstring for more details):
130
134
131
135
* Optionally, starts a Socket REPL server (with the port selected via an environment variable, a JVM property, or a dot-file created on a previous run).
132
136
* If both Portal and `org.clojure/tools.logging` are on the classpath, it patch `tools.logging` to also `tap>` every log message in a format that Portal understands and can display (usually with the ability to go to the file/line listed in the log entry); call `(dev/toggle-logging!)` to turn this `tap>`'ing on and off.
@@ -142,6 +146,8 @@ _Note 1: since the `repl.clj` code uses `requiring-resolve`, it requires at leas
142
146
143
147
_Note 2: if the Portal middleware is added to nREPL/CIDER, all evaluated results will be `tap>`'d (if the Portal UI is open and listening); my [VS Code/Calva setup](https://github.com/seancorfield/vscode-calva-setup) has additional configuration for working with Portal when the middleware is enabled!_
144
148
149
+
_Note 3: as of v1.1.3, adds `user/uptime` so you can easily see how long your REPL has been running, in a human-readable format._
150
+
145
151
## Use with Figwheel
146
152
147
153
If you are doing ClojureScript development with Figwheel (`figwheel-main`) then you can do something like:
0 commit comments