Fork me on GitHub
#boot
<
2017-07-16
>
andrea.crotti11:07:25

Just FYI the discourse link on http://boot-clj.com/ is atm broken..

donyorm12:07:27

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

dave12:07:13

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

martinklepsch13:07:02

@donyorm the result of cljs compilation is on the classpath so most people serve files directly from the classpath

donyorm13:07:54

ok. What do I specify in the html file? Just the value of output-to in the main.cljs.edn file?

martinklepsch13:07:35

it depends 🙂

martinklepsch13:07:57

what do you set as your :root when serving files?

martinklepsch13:07:11

basically need to take away that part from the path you set in output-to

donyorm13:07:48

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

martinklepsch13:07:47

@donyorm you can run them in the same pipeline

donyorm13:07:15

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

manenko18:07:08

(tmp-get "path/to/a/folder") returns nil. Is this by design? This works (tmp-get "path/to/a/folder/a/file").

martinklepsch20:07:29

@manenko directories are not separate entries in the fileset so you cannot get a directory

martinklepsch20:07:01

@manenko if you want to get all files in a directory you can use the various by-* functions

manenko20:07:02

@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.

martinklepsch20:07:00

@manenko you can also use something like (by-re [#"^some/directory/"]) instead of the more low-level file-filter

dimovich22:07:57

greetings all

dimovich22:07:16

boot doesn't produce the main.js on Windows, but works ok on Ubuntu

dimovich22:07:23

how can I investigate this issue?