Fork me on GitHub
#boot
<
2017-03-27
>
armed04:03:23

Hi, I can't sift folder from my target (`boot production cljs sift target`) Sift options is:

{:include     #{#"^\..*"
                       #"\.zip$"
                       #"\.java$"
                       #"\.clj$"
                       #"\.cljs$"
                       #”main\.out$"
                       #"js\.map$"
                       #"css\.map$"
                       #"cljs\.edn$"
                       #”project\.clj$"}
 :invert true}
Basically, sift works on all regexes except main.out directory. How to remove directory using sift?

armed05:03:07

It was dumb question 🙂 Answering to myself #"main\.out$" -> #”main\.out/*"

chrisetheridge06:03:01

i get this error using boot-cljs and boot-reload: Load failed: Jsloader error (code #0): Error while loading script /public/js/main.out/adzerk/boot_cljs_repl.js?zx=brsh8m2arw4l

chrisetheridge06:03:04

anyone have an idea why?

chrisetheridge06:03:16

my build.boot is pretty generic, and i’m not doing anything special at all

chrisetheridge06:03:36

and my server http-kit serves target like this:

(def app
  (->
   (cj/routes base-routes
              (cjr/resources "/js" {:root "target/public"})
              (cjr/resources "/"   {:root "public"}))
   (with-headers {"Cache-Control"   "no-cache"
                  "Expires"         "-1"
                  "X-Frame-Options" "SAMEORIGIN" })))

chrisetheridge06:03:42

ah nevermind 😄 just bumped boot-cljs and alls working fine 🙂

qqq19:03:27

I'm using boot. main.cljs loads a macro from lang/foo.clj , which tries to load util/db.cljc -- but somehow can't find it

qqq19:03:34

I'm not sure how to debug this.

micha19:03:17

you sjhould be able to do ( "util/db.cljc") if it is in fact on the classpath

micha19:03:45

however, that error, if it's coming from the cljs compiler, is often misleading

micha19:03:20

the actual missing file could be like util/db.cljs

qqq20:03:00

@micha: false alarm, was some weird caching issue

qqq20:03:07

nuked my build / out directory, and everything works now

qqq21:03:56

Is there anyway to have boot itself inject the (enable-consle-print!) ? I want it to run before amy of the namespaces I'm loading runs.