This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-16
Channels
- # aleph (4)
- # bangalore-clj (10)
- # beginners (39)
- # boot (24)
- # cljs-dev (66)
- # cljsrn (79)
- # clojure (39)
- # clojure-italy (7)
- # clojure-russia (6)
- # clojure-spec (4)
- # clojure-uk (1)
- # clojurescript (91)
- # core-async (1)
- # core-typed (2)
- # datomic (49)
- # hoplon (42)
- # lumo (2)
- # nyc (1)
- # off-topic (1)
- # parinfer (20)
- # pedestal (2)
- # reagent (4)
- # rum (14)
- # vim (2)
Just FYI the discourse link on http://boot-clj.com/ is atm broken..
so I have a ring server that I'd like to serve cljs files along with other resources. @martinklepsch suggested not using the target task inside a dev environment, so what is the recommended pipeline for serving cljs files
i made a small library of boot tasks (2 of them, currently) to automate the process of creating new github releases (with uploaded assets and a description generated from the changelog) for a project of mine. sharing it here, in case anyone finds it useful: https://github.com/daveyarwood/boot-github
@donyorm the result of cljs compilation is on the classpath so most people serve files directly from the classpath
@donyorm here’s a bit more context https://github.com/boot-clj/boot-cljs/wiki/Serving-files
ok. What do I specify in the html file? Just the value of output-to
in the main.cljs.edn file?
it depends 🙂
what do you set as your :root
when serving files?
basically need to take away that part from the path you set in output-to
Should I try and run the ring server and the cljs build task in the same pipeline? Right now I'm running them in seperate terminals
@donyorm you can run them in the same pipeline
Ok that worked, now I just need to get richiardiandrea's fix for boot-reload into cljs for me to get everything working. Thanks for your help, I was confused on how that worked
@donyorm what fix? 🙂
@martinklepsch https://github.com/boot-clj/boot-cljs/pull/165 (sorry that was a bit out of context)
(tmp-get "path/to/a/folder")
returns nil
. Is this by design? This works (tmp-get "path/to/a/folder/a/file")
.
@manenko directories are not separate entries in the fileset so you cannot get a directory
@manenko if you want to get all files in a directory you can use the various by-*
functions
@martinklepsch yep, so I've created a function by-directory
using the file-filter
. I needed this to zip all files that live in the same directory.
@manenko you can also use something like (by-re [#"^some/directory/"])
instead of the more low-level file-filter
@martinklepsch thanks!