This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-03
Channels
- # announcements (4)
- # aws (13)
- # babashka (35)
- # beginners (162)
- # boot (8)
- # calva (5)
- # chlorine-clover (15)
- # cider (64)
- # clj-kondo (20)
- # cljs-dev (29)
- # clojars (6)
- # clojure (166)
- # clojure-europe (3)
- # clojure-finland (6)
- # clojure-france (8)
- # clojure-germany (3)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-spec (49)
- # clojure-uk (83)
- # clojurescript (39)
- # clojurex (5)
- # core-typed (2)
- # cursive (3)
- # data-science (17)
- # datascript (3)
- # datomic (22)
- # exercism (5)
- # fulcro (3)
- # jobs-discuss (2)
- # joker (2)
- # kaocha (3)
- # malli (26)
- # off-topic (89)
- # pathom (10)
- # pedestal (14)
- # protorepl (14)
- # re-frame (23)
- # reitit (2)
- # shadow-cljs (27)
- # slack-help (10)
- # spacemacs (14)
- # tools-deps (10)
- # tree-sitter (3)
- # xtdb (19)
- # yada (2)
It's so nice to have a manual that reads from the user's perspective, in an order that makes sense to the user.
@thheller thanks for the improved builds screen…much easier to control builds now in .94
Just a small trick for anyone interested: you can combine deps.edn aliases and shadow-cljs.devtools.cli to have different paths and dependencies between you dev and release builds!
I find it it really useful for environment variables for different process and you can have Clojure files instead of using the :closure-defines
in shadow-cljs.edn. There is also the debugging library that forces to have different version between dev/prod for re-frame.
@thheller thanks a lot for shadow-cljs. It made my journey into CLJS and front end extremely enjoyable :)
Thanks to you, I convinced the hire up in my unit to use CLJS as our default front end tool :)
Hi, I'm trying to init a repl on a specific namespace using the :repl-init-ns
, but it does not seem to work. I'm connecting with the command (shadow.api/nrepl-select :app)
Anyone has any idea?
> You may configure the namespace you start in when connecting by setting `:init-ns` in the `:nrepl` options. It defaults to `shadow.user`.
this is for the clojure repl right?
In this case I want to set the initial namespace for the cljs repl
ok, let me try this
it didn't work either 😞
{:builds
{:app {:asset-path "/js"
:modules {:main {:init-fn app.main/init}}
:output-dir "public/js"
:target :browser
:devtools {:repl-init-ns app.main}}}
:dependencies [[reagent "0.8.1"]]
:dev-http {3000 "public"}
:http {:port 9631}
:source-paths ["src"]}
the docs don't mention these should be under :devtools
key in the build map. but the example shows it there
yes, I'm following exactly this example. Everything seems right
~/p/c/asg-ignite-app ❯❯❯ shadow-cljs cljs-repl app
shadow-cljs - config: /Users/dan/projects/clojure/asg-ignite-app/shadow-cljs.edn cli version: 2.8.83 node: v12.1.0
shadow-cljs - HTTP server available at
shadow-cljs - server version: 2.8.83 running at
shadow-cljs - nREPL server started on port 63308
app.main=>
This is the function that I run at Clojure REPL to start the ClojureScript repl
(defn start! []
(shadow.server/start!)
(shadow.api/watch :workspaces)
(watch-with-profile :app :dev)
(shadow.api/nrepl-select :app))
Is it different from running cljs-repl?
Yeah, it is definilty they way I'm starting. WIth command-line it starts in the correct ns.
Humm, yeah, I imagine I might be doing something wrong
I'll try to figure it out. Thanks for the help.