This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-21
Channels
- # announcements (1)
- # babashka (13)
- # beginners (85)
- # calva (1)
- # chlorine-clover (16)
- # cider (30)
- # clj-kondo (2)
- # clj-on-windows (5)
- # cljdoc (3)
- # cljs-dev (12)
- # cljsrn (19)
- # clojure (88)
- # clojure-europe (39)
- # clojure-nl (7)
- # clojure-sweden (3)
- # clojure-uk (8)
- # clojurescript (35)
- # core-async (3)
- # data-science (2)
- # datomic (17)
- # defnpodcast (3)
- # deps-new (1)
- # editors (18)
- # emacs (4)
- # events (1)
- # expound (1)
- # figwheel-main (8)
- # fulcro (9)
- # graalvm (2)
- # graalvm-mobile (11)
- # helix (44)
- # jobs (7)
- # lsp (95)
- # luminus (9)
- # malli (6)
- # meander (4)
- # membrane (2)
- # missionary (13)
- # off-topic (98)
- # pathom (2)
- # polylith (4)
- # portal (3)
- # re-frame (6)
- # reagent (27)
- # reitit (3)
- # releases (3)
- # remote-jobs (6)
- # rewrite-clj (1)
- # rum (2)
- # sci (3)
- # shadow-cljs (7)
- # sql (66)
- # tools-deps (80)
- # vim (5)
- # xtdb (3)
Can someone point me to an example, the equivalent of something like:
class CustomizedAxisTick extends PureComponent { ... bla-bla-bla ...
done with Reagent?@U0G75ARHC unless you were hinting toward something else
I'm trying to recreate this example in Cljs: https://recharts.org/en-US/examples/CustomizedLabelLineChart And I can't make it work
@thheller I take it font imports are a no go as well for shadow-cljs?
just use https://fonts.google.com/ and configure the font you want and use the CSS they give you
Is there something like an observable implementation in Google Closure?
Couldn’t find anything in Closure library
I checked a few days ago and couldn’t find anything in the closure library.
Missionary (https://github.com/leonoel/missionary)
has observe
.
#missionary
Yeah I found that and it kind of looks promising but somehow the amount of macro-magic worries me haha
probably mostly because I don’t feel like I understand macros all that well 😄
Macros should be avoided if possible, but for something like missionary they are inevitable. So they are not a problem 🙂
I’m experimenting with a clojure and clojurescript monorepo. One of the structures (https://gist.github.com/athomasoriginal/47913c6b946fc7416c3d839be101e600#monorepo-version-3) has a “controller deps.edn” which would contain an alias to run the cljs project app-client
. Looks like this:
{:dev
{:extra-paths ["test" "target" "tools"]
:main-opts ["-m" "figwheel.main"
"--build" "app-client/dev"
"--repl"]}
I have been able to get most everything working. The last challenge appears to be that when I run the above alias, the CLJS compiler (i’m assuming it’s CLJS) can’t find my node_modules
so compiling will fail.
Is it possible to teach CLJS where to look for the node_modules
? Figured i’d ask here before I dig into src code. Thanks!!it's not possible for node_modules
to be outside of the source directory (for ClojureScript)
for historical reasons this is the most sound thing to do - because JS has reproducibility issues
Thanks. Makes sense :thumbsup:
Hey vim users, share your vimrc with me! What plugins, if any, do you use for connect to and evaluate ClojureScript code from a repl? If you do it by hand (start the repl yourself), do share the mechanics.
see the #vim channel!
short answer is Fireplace! I use shadow-cljs and then :Connect 3333
and :CljEval (shadow/repl :my-build)
Thanks.
Does anyone have any thoughts on https://github.com/clj-commons/cljss I'm playing around with it and it has a lot of restrictions and corner cases. I'm not sure this is avoidable given what its trying to do. Everything I have used in this space has been a bit of a headache.
I generally don’t like this pattern. The relation between CSS and HTML is not hierarchical it is relational and open, N:N. CSS in JS represents a special case, not a general one.
I'm a big fan of styled-components
in the javascript spectrum as we keep CSS around still and make it more dynamic.
I haven't seen it being used in CLJS in a good way yet and I'm not even sure its possible given CLJS doesn't have template literals
@U0DJ4T5U1 I recently looked into this as well and there’s a few more options you might want to consider: • https://stitches.dev/ • https://github.com/roosta/herb I eventually just went with plain CSS but I think there’s some situations in which this can be really helpful
@U01EFUL1A8M thanks for responding. Can you explain why you think this is hierarchical? The main functionality here in thinking of is that it transforms css data on the component into css classes. I was also hoping it would let me compose css like clojure, but given it's use of macros, that isn't the case. E.g the defstlyes macro needs to take a hashmap, not a expression that builds one.
@U6JS7B99S I'll need to read about template literals. Thanks for the suggestion.
@U050TNB9F I'll give those a look, thanks.
At a glance herb looks similar to clj-commons, which is great because it's easier to understand what's possible with two implementations.