figwheel-main

figwheel-main http://figwheel.org
2020-04-22T19:38:37.039900Z

Hi, does anyone have a nice example of adding devcards as an :extra-main? I was a little surprised it was not part of the figwheel main template (nor the readme for devcards)

mkvlr 2020-04-22T19:51:21.040100Z

https://figwheel.org/docs/extra_mains.html#usage

2020-04-22T20:01:05.041300Z

Yes, that's definitely part of it! I'm finding it a little tricky to piece together the documentation in the devcards repo with the figwheel main docs to actually get a running devcards page

2020-04-22T20:03:05.042600Z

I need to add the :extra-main, a separate html file, and a separate folder with my devcards cljs files?

mkvlr 2020-04-22T20:04:13.043100Z

you only need a seperate html file, and set :devcards true in the compiler settings, that’s it

mkvlr 2020-04-22T20:05:28.043800Z

the seperate html file can be the same as your regular html but also have a [:script "devcards.core.start_devcard_ui_BANG__STAR_()"] in it

mkvlr 2020-04-22T20:06:49.044300Z

so basically this https://github.com/bhauman/devcards#devcards-as-a-standalone-website

2020-04-22T20:26:11.044700Z

Thanks!