Skip to content

Commit

Permalink
alias: :repl/clerk runs REPL & clerk listening to evaluations (alpha)
Browse files Browse the repository at this point in the history
Run a REPL with nREPL and start Clerk with `-e` option

Practicalli usually prefers to run tools from a custom `user` namespace, so this
alias may change over time
  • Loading branch information
practicalli-johnny committed Oct 17, 2023
1 parent 605a030 commit 6b0649a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#+TITLE: Changelog

* Unreleased
** Added
- alias: `:repl/clerk` alpha design alias to run REPL and start clerk listening to evaluations
** Changed
- docs: rewrite `:dev` aliases introduction
- alias: `:test/cloverage` corrected to `:test/coverage`
Expand Down
13 changes: 13 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@
"--interactive"
"-f" "rebel-readline.main/-main"]}


;; Start REPL with Clerk notebook receiving evaluation results

This comment has been minimized.

Copy link
@behrica

behrica Oct 18, 2023

I would add here: "Starting Clerk and it's tap inspector".

It is as well know documented here:
https://github.clerk.garden/nextjournal/book-of-clerk/commit/b4c03cfb272f516a287c51133dd2dc0a71f274f0/#tap-inspector

;; Alpha stage alias design - may change
:repl/clerk
{:extra-deps {io.github.nextjournal/clerk {:mvn/version "0.15.957"}
nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.40.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}}
:main-opts ["-e" "(require '[nextjournal.clerk])(nextjournal.clerk/show! 'nextjournal.clerk.tap)(nextjournal.clerk/serve! {:browse? true})"
"-m" "nrepl.cmdline"
"--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"
"--interactive"]}

:repl/rebel-debug
{:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.40.0"}
Expand Down

0 comments on commit 6b0649a

Please sign in to comment.