This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-27
Channels
- # announcements (8)
- # architecture (3)
- # aws (18)
- # beginners (96)
- # bristol-clojurians (3)
- # calva (15)
- # cider (7)
- # clj-kondo (8)
- # clojure (135)
- # clojure-denmark (1)
- # clojure-dev (14)
- # clojure-europe (37)
- # clojure-italy (9)
- # clojure-nl (14)
- # clojure-sanfrancisco (1)
- # clojure-spec (1)
- # clojure-uk (54)
- # clojurescript (27)
- # core-async (243)
- # cursive (28)
- # data-science (6)
- # datomic (33)
- # fulcro (25)
- # graalvm (24)
- # hoplon (2)
- # instaparse (12)
- # jackdaw (1)
- # java (21)
- # juxt (12)
- # meander (10)
- # nyc (4)
- # off-topic (6)
- # om (3)
- # pathom (17)
- # perun (1)
- # re-frame (29)
- # reitit (4)
- # rum (3)
- # shadow-cljs (119)
- # spacemacs (31)
- # xtdb (14)
i’m considering using https://github.com/yjs/yjs in a project but not sure how much of a pain it would be mixing these data structures
Have not used it myself, but this is related and may be useful: https://text-crdt-compare.surge.sh/
Hi everybody! Maybe this has been already asked but, has anybody managed to use vim-fireplace with clojurescript? I’ve been trying with shadow-cljs and figwheel but got no luck 😞
I feel your pain. Not with that specifically but I feel like most people after trial and error find some setup that works and then just stick with that for about 5ish years at least haha. I know I should probably switch to shadow-cljs but I only figured out how to use figwheel-main with emacs after several months of trial/effort lol
With shadow, if you are running the dev server you can :Connect
to the port it starts the nrepl server on, and then :Piggieback {your shadow app name}
to it after that. Not ideal but does work
I tried that, I have ran shadow-cljs watch app
and in vim I run the :Connect 3333
: (nrepl port is configured to be the 3333), after that I do the`Piggieback :app` and I get “No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.”
My shadow-cljs.edn file looks like this:
{:source-paths ["src"]
:dependencies [[cider/cider-nrepl "0.21.1"]]
:nrepl {:port 3333}
:dev-http {8080 "resources/public/"}
:builds {:app {:target :browser
:output-dir "target/browser"
:modules {:main {:init-fn example.core/main!}}
:devtools {:after-load example.core/reload!}}}}
It was a lein figwheel initialized project which I was trying on. I created an example app using npx create-cljs-project
and got it easily working as you stated. Thanks a lot @UMP2T9H7Y
Does anyone have a recommendation to an automated testing alternative to lein doo (using deps.edn and/or shadow-cljs)?
(preferably deps.edn cause I haven't learned shadow-cljs yet :face_with_rolling_eyes: )
reagent
but not the components, just regular clojurescript functions
I've been running tests from repl/browser and that's fine but want to get a ci/cd thing going. Travis or the like
will use lein doo if necessary but I've been enjoying the minimalism of deps.edn
kinda in the same boat myself, been looking at lein doo for integration testing of a re-frame app as well
though I like cljs-test-display https://github.com/bhauman/cljs-test-display and might just use that along with re-frame-test for the clojurescript stuff
ok great I'll check that out
yeah I hear ya
also check out figwheel-main's testing features https://figwheel.org/docs/testing.html
i haven't started using figwheel main in my apps yet due to some problems with legacy setup, but it has provisions for integrations CLJS tests to CI
out of curiosity is it an issue converting project.clj to deps.edn?
true, lein has a lot of good features that it's hard to get away from. I still use it for library projects because it's great for shipping