This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-09
Channels
- # adventofcode (132)
- # announcements (19)
- # babashka (7)
- # babashka-sci-dev (6)
- # beginners (46)
- # calva (25)
- # chlorine-clover (5)
- # cider (2)
- # clara (17)
- # clj-kondo (93)
- # clojure (2)
- # clojure-dev (4)
- # clojure-europe (12)
- # clojure-losangeles (3)
- # clojure-nl (7)
- # clojure-uk (4)
- # clojurescript (29)
- # conjure (6)
- # core-async (8)
- # cursive (16)
- # data-science (7)
- # datomic (1)
- # exercism (4)
- # figwheel-main (8)
- # fulcro (9)
- # graphql (2)
- # helix (1)
- # introduce-yourself (3)
- # jobs (3)
- # lsp (4)
- # malli (20)
- # minecraft (3)
- # nextjournal (62)
- # off-topic (16)
- # overtone (34)
- # pathom (5)
- # polylith (10)
- # portal (1)
- # re-frame (104)
- # reagent (29)
- # reitit (1)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (22)
- # spacemacs (2)
- # sql (10)
- # tools-deps (17)
- # vim (13)
Hi folks. Is it possible to use shadow-cljs as a library, to (e.g.) compile a cljs string into a js string? Thanks.
technically yes but no. depending on what you are doing you are likely better off using cljs.analyzer directly
Wonderful! Thank you! Looks like cljs.build.api/build
does most of what I want, as long as I don't want advanced optimizations. Would there be a way to have pieces of shadow assist with that?
This is for #oz I want to allow users of oz to build snippets of cljs->javascript in with their notebooks/blog-posts/documentation.
There are two goals with respect to this: • Make it possible to inline reagent components in the context of a document (code block in a markdown file, for example) • Plug reagent components into a multimethod dispatch system, so that oz's live-view can be "extended"
Yes, I believe so
Yes, correct
Got it; That's sort of what I was afraid of.
OK; That makes sense.
my general recommendation would be a take your snippets and somehow generate a regular .cljs file out of that
then compile that as a regular build via the CLJ API (same as a regular build config really)
just compiling snippets leaves a lot of manual stuff for you to do that are easy to mess up (eg. loading all sources in proper dependency order)
but yeah you probably need to compile some or all of your other live-view related code together with that
That makes sense. Thank you!