devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
grav 2015-12-08T08:08:19.000100Z

Hey there! I’m having trouble getting a hosted devcards website to work. I get the devcards UI but no namespaces are listed

grav 2015-12-08T08:08:53.000101Z

I have a my-app.cards namespace with the following

(ns my-app.cards
  (:require [devcards.core]))

(devcards.core/start-devcard-ui!*)

grav 2015-12-08T08:09:11.000102Z

(I had to add the asterisk, it isn’t in the tutorial)

grav 2015-12-08T08:10:17.000103Z

I then do lein cljsbuild once hostedcards and start a web server where my cards.html is located. And then I get the devcards UI but no namespaces are listed. Everything is working fine with figwheel

grav 2015-12-08T08:11:34.000104Z

I only have one namespace in the app, and in there, I have

(ns my-app.my-component
  (:require [devcards.core])
  (:require-macros [devcards.core :refer [defcard-ng]))

grav 2015-12-08T12:29:06.000109Z

Okay, I figured it out - I need to refer to the namespaces with cards from my-app.cards

grav 2015-12-08T12:29:12.000110Z

Figwheel did it automatically