This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-03
Channels
- # arachne (31)
- # aws (9)
- # bangalore-clj (7)
- # beginners (46)
- # boot (18)
- # cider (21)
- # cljs-dev (8)
- # clojure (154)
- # clojure-dusseldorf (5)
- # clojure-filipino (3)
- # clojure-ireland (4)
- # clojure-italy (9)
- # clojure-russia (6)
- # clojure-spec (6)
- # clojure-uk (52)
- # clojureremote (3)
- # clojurescript (173)
- # clojurewest (14)
- # cursive (24)
- # data-science (2)
- # datomic (18)
- # defnpodcast (1)
- # devcards (1)
- # hoplon (4)
- # instaparse (29)
- # jobs (2)
- # juxt (1)
- # leiningen (3)
- # lumo (78)
- # off-topic (46)
- # om (9)
- # onyx (42)
- # pedestal (33)
- # perun (3)
- # re-frame (9)
- # reagent (6)
- # slack-help (5)
- # spacemacs (2)
- # specter (6)
- # unrepl (157)
- # untangled (99)
- # yada (32)
Next boot-cljs will have refactored compiler option handling which should support user provided values for every option, but provide defaults like previously: https://github.com/boot-clj/boot-cljs/blob/master/docs/compiler-options.md
I'll probably write another doc about how to serve Cljs compiler artifacts from filesystem, instead of classpath
And maybe I'll write blog post about this also as this is the reverse of what I have recommended 😄
How can I pass the absolute path of a file to a boot task (from another boot task using with-pre-wrap
to get at the fileset). It doesn’t seem like boot tasks can/should be called from within a with-pre-wrap
. I’m trying to use boot-exec
‘s exec
task, but the command-line process I’m trying to call needs the absolute path to some files in my fileset. 😕
When you need to run external application from boot task (inside the middleware, with-pre-wrap), you should probably use boot.pod/sh
instead: https://github.com/boot-clj/boot/blob/master/boot/pod/src/boot/util.clj#L456
Tasks are not supposed to be used from inside other tasks
Though boot.pod/sh
obviously wont take care of setting up pwd
and adding output files to fileset
But you can take example from Cljsjs package scripts calling Node, e.g. https://github.com/cljsjs/packages/blob/c3ab0f9136d1caa7337b1370f4317828e86b5b19/material-ui/build.boot#L38-L62
It has three parts: 1. Copying necessary input files from fileset to temp dir 2. Running the commands inside the temp dir 3. Copying interesting files from temp dir to fileset
thanks
I’ll re-raise my Q from yesterday, now there’s more eyes in the channel: If I specify -d
on the command line, it doesn’t seem to pick up :repositories
from ~/.boot/profile.boot
(so it doesn’t find artifacts that aren’t in Central/Clojars). Is that expected behavior?
(and that’s outside a Boot project folder)
And, as noted yesterday, if I do boot repl
instead, that does pick up ~/.boot/profile.boot
because I can merge-env!
in that dependency and it finds it just fine.
@seancorfield that isn't ideal behavior, i think it should respect repository settings in build.boot
@micha To be clear: this is in the absence of build.boot
— but it didn’t seem to run ~/.boot/profile.boot
which surprised me a bit.
It just means you can’t easily just start a REPL with dependencies that come from non-standard repositories. Worth a note in the Boot docs I think.