Skip to content

Commit c4bf500

Browse files
committed
more readme
1 parent 3824ed6 commit c4bf500

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,23 @@ bin/launchpad <options> [proj1|proj2]+
162162
--emacs Shorthand for --cider-nrepl --refactor-nrepl --cider-connect
163163
```
164164

165+
For example
166+
167+
```
168+
➜ bin/launchpad backend frontend --emacs
169+
[INFO] clojure -J-XX:-OmitStackTraceInFastThrow -J-Dlambdaisland.launchpad.aliases=backend,frontend -A:backend:frontend -Sdeps '{:deps {cider/cider-nrepl #:mvn{:version "0.28.5"}, refactor-nrepl/refactor-nrepl #:mvn{:version "3.5.2"}, com.lambdaisland/classpath #:mvn{:version "0.4.44"}, com.lambdaisland/launchpad #:local{:root "/home/arne/github/lambdaisland/launchpad"}}}' -M -e '(do (require (quote lambdaisland.classpath.watch-deps) (quote lambdaisland.launchpad.deps)) (lambdaisland.classpath.watch-deps/start! {:aliases [:backend :frontend], :include-local-roots? true, :basis-fn lambdaisland.launchpad.deps/basis, :watch-paths [(lambdaisland.classpath.watch-deps/canonical-path "deps.local.edn")], :launchpad/extra-deps (quote {cider/cider-nrepl #:mvn{:version "0.28.5"}, refactor-nrepl/refactor-nrepl #:mvn{:version "3.5.2"}, com.lambdaisland/classpath #:mvn{:version "0.4.44"}})}) (require (quote nrepl.cmdline)) (nrepl.cmdline/-main "--port" "41545" "--middleware" "[cider.nrepl/cider-middleware refactor-nrepl.middleware/wrap-refactor]"))'
170+
nREPL server started on port 41545 on host localhost - nrepl://localhost:41545
171+
```
172+
173+
At this point in Emacs you'll see this pop up:
174+
175+
```
176+
[nREPL] Establishing direct connection to localhost:41545 ...
177+
[nREPL] Direct connection to localhost:41545 established
178+
```
179+
180+
For other editors connect to the given port manually.
181+
165182
<!-- opencollective -->
166183
## Lambda Island Open Source
167184

src/lambdaisland/launchpad.clj

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -306,23 +306,3 @@
306306
:project-root project-root}
307307
steps)
308308
@(promise)))
309-
310-
311-
312-
313-
(comment
314-
(let [options {:main-opts *command-line-args*
315-
:cider-nrepl true
316-
:refactor-nrepl true
317-
:env (into {} (System/getenv))
318-
:project-root project-root}]
319-
(reduce #(%2 %1)
320-
{:options options}
321-
[find-free-nrepl-port
322-
compute-middleware
323-
compute-extra-deps
324-
#_start-nrepl
325-
#_wait-for-nrepl
326-
clojure-cli-args]))
327-
328-
)

0 commit comments

Comments
 (0)