This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-30
Channels
- # announcements (15)
- # beginners (99)
- # boot (15)
- # cider (105)
- # cljdoc (2)
- # cljs-dev (17)
- # clojure (132)
- # clojure-conj (1)
- # clojure-dev (5)
- # clojure-italy (19)
- # clojure-losangeles (2)
- # clojure-nl (20)
- # clojure-spec (70)
- # clojure-uk (50)
- # clojurescript (153)
- # core-logic (9)
- # cryogen (4)
- # cursive (6)
- # datomic (40)
- # duct (5)
- # figwheel-main (10)
- # fulcro (245)
- # hoplon (1)
- # jobs (3)
- # leiningen (12)
- # mount (8)
- # nrepl (11)
- # off-topic (1)
- # pathom (16)
- # pedestal (3)
- # planck (17)
- # re-frame (3)
- # reitit (8)
- # shadow-cljs (64)
- # spacemacs (3)
- # specter (20)
- # tools-deps (21)
^{:extra-main-files {:devcards {:main react-hitch.devcards-runner}
:test {:main react-hitch.test-runner}}
:watch-dirs ["src" "test" "devcards"]}
{:main react-hitch.qui-tracker
:devcards true}
@rgmthings to be wary about: need things on both classpath and watch dirs. typical bruce fashion there are extremely helpful and guiding error messages. Don't forget the devcards true
in the cljs compiler options otherwise devcards compile to no-ops
it's easy to see the output extra main files and make some files that point at them although bruce was incredibly nice and made autogenerated routes for them as well at figwheel-extra-mains/route
. This isn't suitable for devcards though as the devcard UI and the figwheel UI clash
We had it "working" in the provided extra-mains
page with:
(. (js/document.getElementById "app-devcards") remove)
(devcards.core/start-devcard-ui!)
happy to share our devcards or test runner but they are bog standard, calling start-ui or the test infrastructure
in case anyone else needs it, here’s a nearly-minimal patch to add devcards in a figwheel-driven tools.deps project https://github.com/rgm/reframe-template/commit/c149aae556caa2dcd2f720d451205810448dcced