Fork me on GitHub
#devcards
<
2015-11-04
>
jeremyraines17:11:40

I’m trying to follow the devcards steps for use with figwheel, and I think I’m missing some knowledge about lein and/or cljsbuild. It doesn’t look like my devcards build actually happens (I don’t see the compiled js at the location specified in the devcards build map). Do you have to trigger that seperately from running lein-figwheel?

jannis18:11:11

@jeremyraines: Is the code public?

jeremyraines18:11:30

sure, I can push up the WIP right now

jeremyraines18:11:39

I’m just trying to take a bunch of tools and do the simplest possible thing with them, just to practice getting a project set up, and documenting it in a guide format as I go (not that I think i’m actually qualified to promote said guide as anything authoritative)

jannis18:11:43

I see no start-devcard-ui! in cards.core. That might just be what's missing.

bhauman18:11:28

@jeremyraines how are you trying to start figwheel and interact with the cards?

jeremyraines18:11:14

I couldn’t see them getting compiled when I did lein figwheel, so right now I’m just using lein cljsbuild once

jeremyraines18:11:31

i have figwheel running though

bhauman18:11:18

So you are missing some basic knowledge about figwheel and builds in general

bhauman18:11:44

You will need to run lein figwheel devcards

bhauman18:11:58

Specifying the build you want to build

bhauman18:11:52

The id of the devcards build will start the autobuilding of that build.

jeremyraines18:11:41

got it. fixing my namespaces & doing that

jeremyraines18:11:54

great. It’s working now, thank you. I still see that invariant violation in the console, but everything I expect to see in the UI is there

bhauman18:11:18

So you are thrashing a bit. Please slow down and approach these tools more slowly and learn how to use them a least a little bit otherwise nothing is going to ever work for you. We'll be able to help you much better. Have you done the clojurescript Quick Start? Have you done the figwheel Quick Start?

jeremyraines18:11:27

been a while on the former, and had been going along well with Figwheel for a while. Learning the tools “at least a little bit” is what I’m trying to do, but I’ll try to keep my questions to a minimum. There’s a lot of tools though, hence the thrashing. Takes some time to learn where the problem is coming from, even if you’re comfortable using the tool when everything’s working as expected.

bhauman19:11:52

@jeremyraines: yeah, there are lots of assumptions in the docs. I'm psyched that you are hanging in there and giving things a try. Once you get going ClojureScript is the most fun you can have these days.

bhauman19:11:01

on the front end anyway

bhauman19:11:16

Clojure is pretty bad ass on the back end as well.

jeremyraines19:11:33

yeah, I’m really excited. Apologies for getting a bit defensive — your advice is obviously sound.

bhauman19:11:35

well I apologize for the comment with the RTFM subtext

jeremyraines19:11:23

no problem. and thanks again for both your help and these great tools