This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-20
Channels
- # adventofcode (47)
- # announcements (3)
- # aws (29)
- # bangalore-clj (3)
- # beginners (63)
- # boot (2)
- # braveandtrue (40)
- # calva (34)
- # cider (37)
- # cljs-dev (8)
- # clojars (3)
- # clojure (45)
- # clojure-europe (2)
- # clojure-france (4)
- # clojure-india (2)
- # clojure-italy (44)
- # clojure-japan (4)
- # clojure-nl (39)
- # clojure-serbia (1)
- # clojure-spec (21)
- # clojure-uk (75)
- # clojurescript (28)
- # cursive (24)
- # data-science (3)
- # datomic (31)
- # emacs (13)
- # fulcro (35)
- # hoplon (21)
- # jobs-discuss (66)
- # nrepl (18)
- # off-topic (72)
- # pathom (35)
- # re-frame (20)
- # reagent (54)
- # shadow-cljs (35)
- # spacemacs (9)
- # specter (8)
- # sql (13)
- # testing (9)
- # tools-deps (21)
- # vim (3)
Does shadow cljs support specifying the clojure / clojurescript versions in the edn file? I would really like to use 1.10 for the new error reporting but my OS level install is 1.9 still
WARNING: The org.clojure/clojure dependency in shadow-cljs.edn was ignored. Default version is used and override is not allowed to ensure compatibility. WARNING: The org.clojure/clojurescript dependency in shadow-cljs.edn was ignored. Default version is used and override is not allowed to ensure compatibility.
@m131 you can specify a diff version of either clojure or cljs if you use deps.edn or leiningen integration
I expect that you wont’ get much out of updating to Clojure 1.10, since you shouldn’t be writing much CLJ code with shadow-cljs?
oh, nice, thank you. Do the 1.9 features of spec work well in shadow-cljs / clojurescript?
I've been playing with clojure the last 3 or 4 months, loving it. Now attempting to write an npm lib/module in shadow-cljs
my biggest pain-point now is unlike C-c M-j
to just jack into a lein project automatically, it seems I have to start a shadow-cljs repl in the terminal and use cider-connect and then manually type a port - is that usual?
and while that is annoying, it always defauls to clj not cljs, so then I must run (shadow.cljs.devtools.api/node-repl :dev)
by hand in the repl to get to the app / node repl I guess?
its good when its all set up, I can dev for awhile, just very cludgy (I guess I could write some custom elisp to auto insert the text in repl for me)
when developing for the browser, or for a Node.js server, I just run cider-jack-in-clojurescript and it starts shadow-cljs and connects me to the REPL
cider supports a C-c M-J
command for cljs jack in, and I see that launches some type of nrepl with npx / shadow, but it then tries to open a browser ,which is useless for me
yeah for Node.js, I omit opening the browser page and instead start my node.js server
I think there’s a command to just start a node-repl from a terminal, but i’m not sure if it starts nREPL
well, thank you for the help - gonna hit the hay, hopefully someone has solved this and is in the channel, or i'll whip up some abomination of elisp to auto-connect as needed and come share my findings tomorrow night or so 😆
I would expect, based on the user guide, that you could start a watch
build like normal and then run the compile Node.js script
I am pretty sure I've seen shadow jack-in code in cider. But, i might have dreamt it up too…
IIRC, it asks for a repl type when you jack-in (either shadow or shadow-choice or something like it)
I know for browser I can cider-jack-in-cljs
, choose shadow-cljs, and then I get a couple of prompts such as which build I’d like to use. This was very similar to how I jacked in to lein,
@mateus.pimentel.w you can do that via :npm-module
. https://shadow-cljs.github.io/docs/UsersGuide.html#target-npm-module