-
-
Notifications
You must be signed in to change notification settings - Fork 653
Description
When doing middleware injection in boot projects, we add the cider-nrepl artifact as a dependency by passing the -d
argument to boot and we add our middleware to tools.nrepl by passing the -m
argument to the repl
task.
The -d
argument is fine, but the -m
argument is a little finicky. It only works immediately after the repl
task, so there's nothing we can do if the user instead uses a custom task or something like the very popular cljs-repl
task.
Instead, cider-nrepl could define its own boot task that properly adds the nrepl middleware. Then all we have to do is inject the dependency with -d
and add the task before any other task in cider-boot-params
. This wouldn't require the -m
argument and would work even if the repl
task is not being called directly.