This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-23
Channels
- # aleph (1)
- # architecture (4)
- # aws (7)
- # beginners (249)
- # boot (17)
- # calva (4)
- # cider (30)
- # cljdoc (7)
- # cljs-dev (1)
- # cljs-experience (3)
- # clojure (69)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (7)
- # clojure-japan (15)
- # clojure-spec (6)
- # clojure-uk (39)
- # clojurescript (51)
- # cursive (31)
- # data-science (4)
- # datavis (1)
- # datomic (40)
- # dirac (67)
- # duct (8)
- # editors (15)
- # emacs (9)
- # events (3)
- # figwheel-main (2)
- # fulcro (157)
- # juxt (4)
- # kaocha (11)
- # lein-figwheel (1)
- # off-topic (31)
- # pathom (18)
- # re-frame (4)
- # reagent (2)
- # reitit (16)
- # remote-jobs (1)
- # shadow-cljs (11)
- # specter (2)
- # speculative (1)
- # tools-deps (27)
- # vim (1)
- # yada (2)
Is there a way to get a socket repl for my cljs build that I can use remotely (I'm trying to make a plugin for kakoune)? I can netcat to the socket repl and start a shadow repl, but it appears to back me out to the top-level repl when I run further commands:
➜ core git:(cljs) ✗ echo "(shadow/repl :test)" | nc localhost 58218
shadow-cljs - REPL - see (help)
To quit, type: :repl/quit
[10:0]~shadow.user=> [10:1]~cljs.user=> nil
[10:0]~shadow.user=> %
➜ core git:(cljs) ✗ echo "(prn :x)" | nc localhost 58218
shadow-cljs - REPL - see (help)
To quit, type: :repl/quit
[11:0]~shadow.user=> :x
nil
[11:0]~shadow.user=> %
can shadow-cljs accept output-dir
from CLI?
something like
clj -A:shadow-cljs -m shadow.cljs.devtools.cli release prod --output-dir "resource/public"
?
@jstaab if you nc
an echo
it will end with closing stdin which means closing the REPL
@souenzzo that is not supported by default. you can either use :release
specific config or use clj-run
though
https://shadow-cljs.github.io/docs/UsersGuide.html#_release_specific_vs_development_configuration
(defn release [path]
(-> (shadow/get-build-config :your-build-id)
(assoc :output-dir path)
(shadow/release* {})))