This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-22
Channels
- # anglican (2)
- # announcements (8)
- # babashka (37)
- # beginners (13)
- # calva (16)
- # clj-kondo (20)
- # cljdoc (1)
- # cljsrn (3)
- # clojure (6)
- # clojure-europe (3)
- # clojurescript (3)
- # clojureverse-ops (3)
- # conjure (1)
- # core-async (9)
- # cursive (6)
- # cypress (2)
- # datomic (5)
- # fulcro (1)
- # honeysql (15)
- # luminus (2)
- # malli (35)
- # music (3)
- # nbb (1)
- # off-topic (7)
- # pathom (12)
- # practicalli (1)
- # re-frame (15)
- # reagent (37)
- # sci (9)
- # shadow-cljs (3)
- # show-and-tell (3)
- # spacemacs (3)
- # workspaces (3)
#workspaces2021-08-22
>
I'm able to compile and watch the workspaces page via shadow cljs. But sample card i defined isn't showing up. I'm not sure why. Do i need to point anything at the namespace or root component/element? Here is what it looks like. shadow-cljs build
{:target nubank.workspaces.shadow-cljs.target
:ns-regexp "-(test|cards)$"
:output-dir "workspaces/public/workspaces/js"
:asset-path "workspaces/js"
:preloads [] ; optional, list namespaces to be pre loaded
:devtools {:http-root "workspaces/public"
:http-port 8881
:reload-strategy :full}
}
deps:
:workspaces {:extra-deps {nubank/workspaces {:mvn/version "1.1.1"}}
:extra-paths ["workspaces/main/src"]}
namespace on the path:
(defn element [name props & children]
(apply js/React.createElement name (clj->js props) children))
(ws/defcard hello-card
(ct.react/react-card
(element "div" {} "Hello World")))
hmm. the docs imply it will auto detect the for the cards.
maybe i need to name the build cards?