Fork me on GitHub
#boot
<
2016-11-25
>
onetom06:11:12

@alandipert @micha does that cat on the boot logo has a name? im planning to name by personal laptop after it.

martinklepsch07:11:06

@pandeiro: the jar task has a filename option if that helps

pesterhazy09:11:41

boot-cljs-devtools doesn't seem to work for me

pesterhazy09:11:57

Even when it's enabled, the custom formatter doesn't seem to be installed

pesterhazy09:11:22

I still have to call (devtools/install!) manually

martinklepsch10:11:24

@pesterhazy do you have a cljs edn? you could inspect that after you run the cljs-devtools task, should have the require/init-fns

pesterhazy10:11:41

how do I find it in the tempdir?

martinklepsch10:11:08

(with-pre-wrap fs
  (println (slurp (io/resource "public/app.cljs.edn")))
  fs)

pesterhazy10:11:09

because really calling this manually seems like a hack (and will it work for prod builds?)

pesterhazy10:11:20

ah jetzt ja!

pesterhazy10:11:24

I should also be able to add this manually like this, correct?

{:require  [dashboard.core]
 :init-fns [dashboard.core/init]
 :compiler-options {:asset-path "/js/dashboard.out"
                    :devcards true
                    :preloads '[devtools.preload]}
 :source-map true}

martinklepsch11:11:14

I guess. :asset-path is a compiler option that's usually handled by boot-cljs though

pesterhazy11:11:21

yeah my understanding of the different asset-paths is hazy at best

pesterhazy11:11:51

it gets complicated if your js files reside in public/ in your classpath and / on public web urls

pesterhazy11:11:03

but I guess that's another construction site 🙂

martinklepsch11:11:56

yeah, basically only ever use the asset-path options that are provided directly with the task. If they don't do what you want try to understand how they affect the URL building etc and tweak accordingly

pesterhazy11:11:30

I should try to grok this, and then write up a blog post

martinklepsch11:11:54

never a bad idea

pesterhazy11:11:34

^^ that's what boot -v dev spits out

pesterhazy11:11:56

even though I intentionally misspelled the preload ns, no error whatsoever

martinklepsch11:11:15

no error at build time you mean?

pesterhazy11:11:30

ahh maybe old cljs??

martinklepsch11:11:30

are you maybe on a version that doesn't have preloads?

pesterhazy11:11:45

trans-continental

pesterhazy11:11:15

frankly, some sort of plausibility check of compiler options would have caught this

pesterhazy11:11:48

maybe spec will help here

martinklepsch11:11:51

I'm sure spec-checking of compiler options will arrive eventually

martinklepsch11:11:26

I believe Bruce Hauman wrote the compiler-options spec already in fact

onetom17:11:11

@pesterhazy i have an example project here with quite latest deps + cljs-devtools + dirac: https://github.com/addplus/ui/tree/addplus run it with boot test then open -a "Google Chrome Canary" --args --no-first-run --remote-debugging-port=9222

hlship19:11:57

Am I missing something? I’m trying to turn off color on OS X. export BOOT_COLOR=off doesn’t work. Putting it in ~/.boot/boot.properties doesn’t work. @util/*colorize?* is always true.

hlship21:11:54

Ok, well the -C option works so that’s good. I’ll check the issues list, might be a (known) bug.