Fork me on GitHub
#boot
<
2015-12-11
>
flyboarder03:12:36

will I get the same behaviour if I use task-options! from within a task? or is there another way to accomplish that?

martinklepsch09:12:25

@flyboarder: the "Boot for leiningen Users" Wiki page expands a bit on that. Basically yes, you can use task options within task. It's just important that the fn is called top level and not wrapped in sth like with-pre-wrap

socksy11:12:21

hey, so I've updated a project from CLJS version 0.0-2814 to 1.7.170, and now I'm getting told I need to specify :asset-path. The docs are a bit cryptic, what should the asset path be? (:source-paths is already set...)

socksy11:12:11

not sure if it's a boot specific question, but I figured it's to do in the boot conf so may differ from lein answers

martinklepsch11:12:26

@socksy: it can be a cljs Compiler Option or a task option for the reload task

martinklepsch11:12:47

@socksy: do you have a cljs.edn file?

martinklepsch11:12:44

Have you updated boot-cljs boot-reload etc?

martinklepsch11:12:29

Can you paste cljs.edn and build.boot?

martinklepsch11:12:47

@socksy: the pseudo names and unified mode stuff can be deleted

martinklepsch11:12:15

Looks correct besides that though. Can you paste the complete error message?

socksy11:12:42

ClojureScript could not load :main, did you forget to specify :asset-path? localhost:3000:69:80 is the error in firefox

socksy11:12:13

i notice in chromium actually there's a couple of 404s

martinklepsch11:12:29

Oh, it's a js error not a Clojure stacktrace

socksy11:12:29

base.js and cljs_deps.js

socksy11:12:47

likely a firewall thing?

martinklepsch11:12:40

Does your project have an index html or are you loading the js on a different page/port?

socksy12:12:22

there's an index.html, but it looks like those two files aren't being built in the first place

socksy12:12:29

(i know almost nothing about this project)

socksy12:12:49

and not in grep either? No idea why they're being required

martinklepsch12:12:38

Why what is being required?

martinklepsch12:12:57

The asset-path compiler option you're missing in this case is useful when the js is loaded on a different host than it is served from. Basically the error says it can't find the compiled js where it expects it

martinklepsch12:12:08

I hope that helps figuring it out

socksy12:12:17

ok, cheers

socksy14:12:11

fwiw, I found it in the newer tenzing template, :compiler-options { :asset-path "js/app.out" }}

flyboarder18:12:49

@martinklepsch: 🍻