This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-06
Channels
- # beginners (137)
- # cider (60)
- # cljs-dev (52)
- # cljsrn (5)
- # clojars (15)
- # clojure (156)
- # clojure-brasil (1)
- # clojure-dev (7)
- # clojure-italy (13)
- # clojure-serbia (2)
- # clojure-spec (12)
- # clojure-uk (76)
- # clojurescript (129)
- # core-async (27)
- # core-typed (1)
- # cursive (3)
- # datomic (105)
- # devcards (39)
- # emacs (10)
- # figwheel (1)
- # fulcro (68)
- # graphql (6)
- # juxt (3)
- # klipse (85)
- # lein-figwheel (47)
- # leiningen (3)
- # midje (1)
- # mount (26)
- # off-topic (71)
- # om (4)
- # overtone (4)
- # parinfer (3)
- # pedestal (4)
- # portkey (37)
- # re-frame (37)
- # reagent (13)
- # reitit (3)
- # ring (1)
- # rum (5)
- # shadow-cljs (191)
- # spacemacs (35)
- # specter (26)
- # tools-deps (45)
- # vim (20)
Hi there! please hint how to use devcards from figwheel.main?
- fw.main setup working
- in xxx.core.cljs
required devcards, start-devcard-ui!
- {:main xxx.core :figwheel {:devcards true}}
in dev.cljs.edn
not sure about this?
=> I see the devcards UI, but not my card's ns
but untill then you would need do your second choice "in xxx.core.cljs
required devcards, start-devcard-ui!
"
@fdserr i think you have to require all of the namespaces that you use defcard
in the namespace that you call start-devcard-ui!
(ns cards.core
(:require [devcards.core :as dc]
[cards.document-cards]
[cards.allergies-cards]
[cards.claims.payment-reconciliation]
[cards.problem-list-cards]
[cards.examinations-physical]
[cards.review-of-systems]
[cards.claims.careteam]
[cards.tasks-cards])
(:require-macros
[devcards.core :refer [defcard]]))
(dc/start-devcard-ui!)
@bhauman yeah, saw your kanban, canât be thankful enough for your hard work đ any idea/pointer as why it wouldnât work with my setup? does fw.main catch the âdevcards trueâ entry in build conf?
@fdserr it will be easiest if you have a seperate build config cards.cljs.edn that :main cards.core
in it
@bhauman I'm kinda doing that: https://gitlab.com/fdserr/de2e.clj I suspect the devcards flag is not being picked up. Can you please give me a pointer into either fw or dc code, I might be able to get it straightened? Can't live with no cards lol, so no rush I'm back to lein meanwhile^
(ns de2e.core
(:require
[devcards.core
:refer [start-devcard-ui!]])
(:require-macros
[devcards.core
:refer [defcard deftest]]))
(enable-console-print!)
(defcard "Welcome!")
(start-devcard-ui!)
=> devcards awesomeness!!!
@bhauman president!@bhauman awh đ I refreshed :3449/cards.html from lein project, you bet it worked. :9500/ from figwheel.main setup still not showing my ns... Not a blocker, take it easy, run for president anyway đ
(ns de2e.core
(:require-macros
[devcards.core
:refer [defcard deftest start-devcard-ui!]]))
(enable-console-print!)
(defcard "Welcome!")
(start-devcard-ui!)
=> no dc ui(ns de2e.core
(:require
[devcards.core
:refer [start-devcard-ui!*]])
(:require-macros
[devcards.core
:refer [defcard deftest]]))
(enable-console-print!)
(defcard "Welcome!")
(start-devcard-ui!*)
=> sweetnessjust to annoy you^:
(ns de2e.core
(:require
[devcards.core
:refer [start-devcard-ui!]])
(:require-macros
[devcards.core
:refer [defcard deftest]]))
(enable-console-print!)
(defcard "Welcome!")
(start-devcard-ui!)
=> shows dc ui (not the card tho)
Again, not a big deal, dc very much alright with lein.
Talk to you soon! đ