This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-05
Channels
- # adventofcode (95)
- # announcements (3)
- # babashka (11)
- # beginners (39)
- # boot (19)
- # bristol-clojurians (1)
- # cider (32)
- # clj-kondo (39)
- # cljsrn (8)
- # clojure (156)
- # clojure-dev (35)
- # clojure-europe (4)
- # clojure-italy (15)
- # clojure-nl (28)
- # clojure-spec (43)
- # clojure-uk (153)
- # clojurescript (168)
- # core-async (13)
- # core-logic (11)
- # cryogen (4)
- # cursive (13)
- # datomic (26)
- # duct (3)
- # emacs (8)
- # fulcro (33)
- # garden (4)
- # graalvm (18)
- # graphql (4)
- # jobs-discuss (2)
- # kaocha (1)
- # leiningen (3)
- # malli (8)
- # off-topic (1)
- # pathom (7)
- # re-frame (21)
- # reagent (3)
- # rewrite-clj (1)
- # schema (4)
- # shadow-cljs (40)
- # sql (2)
- # uncomplicate (3)
Hey All, How do I use the Garden library to generate the CSS and then include it in my project? I understand (css [:h1 {:font-weight "bold"}]) will output the appropriate CSS string, but how do I create a CSS file from this and include it in my ClojureScript project? I'm using shadow-cljs as my build tool
Appears devcards is relying on global React
(which is not what you get by default). What are you guys using instead? Storybook?
@kslvsunil I don' know. I've never used garden myself.
@deas might also need cljsjs.react.dom
. I don't know why devcards doesn't require them directly itself
@thheller Appears devtools does not get much β€οΈ these days. We don't have much to loose yet, so I guess it is time to depart now.
@deas https://github.com/filipesilva/create-cljs-app has an example of using devcards with react testing-library on shadow-cljs
it's true that devcards doesn't get a lot of attention, but I don't think storybook fills the same use case
storybook also doesn't match CLJS very well since it expects to work with ESM code
@thheller how should devcards be importing react to be compatible with shadow-cljs by default? I can open an issue there. I think it's likely that devcards will need to get a version out soon because it doesn't support newer react versions well, and will want to include the newer reagent that does.
just (:require ["react" :as react])
should work. I believe the newer cljsjs/react packages have that setup correctly to emulate
Sorry for the noise, but appears I am running into every brickwall one could imagine ... π’
opened said issue https://github.com/bhauman/devcards/issues/165
Running compile
via lein
:aliases
αΊorks ... until it does not when calling the alias from :prep-tasks
. Seems this signature error is not uncommon. Any suspect about the possible culprit?
Note: Recompile with -Xlint:unchecked for details.
Syntax error (NoSuchMethodError) compiling at (shadow/cljs/devtools/api.clj:1:1).
com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V
Moving [thheller/shadow-cljs "2.8.80"]
from :dev
profile to default deps gets around it, but guess I don't want shadow-cljs
ending up in the (uber)jar.
I believe one of the culprits is datomic using an older guava version than the closure compiler
in the past I have done :backend
and :frontend
profiles in lein. that works reasonably well too
Also good point. Guess I better go out for a walk with the πΆ and think about that for a moment. We still have a huge mess to untangle ahead of us ...
Actually, I expected to finish shadow-cljs migration today. Now I find there is a whole lot of yak to shave.