This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-27
Channels
- # beginners (86)
- # calva (1)
- # cider (21)
- # clj-kondo (2)
- # clojure (31)
- # clojure-europe (3)
- # clojure-italy (7)
- # clojure-nl (7)
- # clojure-spec (15)
- # clojure-uk (70)
- # clojurescript (4)
- # clojutre (31)
- # code-reviews (6)
- # cursive (10)
- # datomic (8)
- # duct (3)
- # emacs (2)
- # fulcro (34)
- # funcool (3)
- # jackdaw (2)
- # jobs (10)
- # jvm (2)
- # kaocha (1)
- # off-topic (21)
- # pathom (11)
- # re-frame (10)
- # reagent (4)
- # schema (1)
- # shadow-cljs (72)
- # sql (1)
- # tools-deps (3)
- # vim (9)
- # xtdb (4)
Hi folks, anyone have any experience adding a sass build process into the fulcro build pipeline?
@ssanders yes, don’t do it lol
unless the person writing the styles isn’t CLJS savvy
have you considered this? https://github.com/fulcrologic/fulcro-garden-css
but if you have to use sass (or less or whatever else) it doesn’t have much to do with fulcro, because fulcro is not a build tool
if you’re using shadow-cljs, it’s docs show how to integrate sass
i just use the sass ruby gem to build CSS files into the same public
directory where shadow-cljs outputs
no what i’m saying is don’t use cljs for sass
it’s not the right tool
i use this command sass --watch scss:resources/public/css
to build my sass into the public directory
shadow-cljs takes care of the dev reloading from there
using the ruby gem
and for production deploys you can do something similar with minification
hey all, let’s say you have a series of query components that exist to build up your initial root query. some of those query components contain dependency refs that end up being circular. how can you specify a query along the lines of “expect this ident” in a way that avoids requiring the file and creating a circular dependency ref?
I see in the book a way to avoid circular refs for recursive components, but these aren’t recursive. just circular in terms of file depencies
well ideally you create extra namespaces to avoid circular namespaces
@mss you can try using comp/registry-key->class
to get a component class without it’s symbol
but that’ll only work if fulcro builds it’s component registry before gets any queries
seems like creating extra namespaces is the easier, if slightly duplicative, way to go. totally fine by me
yeah it’s something you often end up having to do in clj/cljs
just because the language doesn’t support circular requires
i wouldn’t fight it, will probably cause problems later if you do
that said, comp/registry-key->class
is a totally viable way to reference component classes without requiring their namespaces, i use that all the time
especially when issuing loads/mutations
since fulcro has built it’s component registry by then
happy to help