Fork me on GitHub
#boot
<
2017-11-21
>
richiardiandrea01:11:25

who can I bother for a perun question 😄

au-phiware02:11:21

does anyone know of a boot task to open a url? ala figwheel's :open-urls option?

richiardiandrea02:11:50

@au-phiware what is the use case? Do you want to open it from the command line?

au-phiware02:11:48

I want my browser to open my index page when cljs completes

au-phiware02:11:40

I ended up writing one 😄

(require '[clojure.java.browse :refer [browse-url]])
(deftask browse
  "Opens browser to given url."
  [u url VAL str "The url to browse to."]
  (with-post-wrap fs
    (browse-url url)
    fs))

au-phiware02:11:10

...and that's why boot rocks

au-phiware02:11:23

I'm surprised nobody packaged that into something called boot-browse... I might have to do it 🙂

grzm02:11:27

Small edit: Cider rocks. Boot kicks it old school.

grzm02:11:55

And my daily punning quota is met.

richiardiandrea03:11:18

is there some tricky tricky I have to do in order to serve .woff2 files with boot-http? /cc @pandeiro

Ruben W13:11:12

I believe it uses ring response middleware under the hood so that would be strange

pandeiro23:11:06

Yeah not that I know of @richiardiandrea - but maybe that's a mime type that isn't supported by the underlying lib?

richiardiandrea23:11:36

@pandeiro I opened an issue in the project, seems like a different problem/expectations