Fork me on GitHub
#boot
<
2016-04-08
>
richiardiandrea00:04:03

I would like to deploy to S3 from the fileset I am building through my task chain, is there a way to achieve this with some known boot task? I saw boot-s3 but I see there is a bug with the fileset sync, what folks use?

richiardiandrea00:04:19

another question, is boot serve serving the last fileset/classpath, subfolders included?

onetom01:04:01

Yes, subfolders included

onetom01:04:59

Its easy to test, so u better try it for yourself :)

onetom01:04:23

If something is missing it's because that file is not on the output fileset

richiardiandrea01:04:44

ok thanks, it is weird because show -f tells me that they are there

richiardiandrea01:04:53

anyways I will investigate

richiardiandrea02:04:36

@nberger: it looks exactly the problem, for instance I don't main.out...

nberger02:04:25

@richiardiandrea: from the top of my head, I think a workaround is to add target to the pipeline

richiardiandrea02:04:17

And serve :dir target?

dominicm08:04:19

boot server target I think

dominicm08:04:29

oh, I misunderstood your question.

nberger13:04:20

@richiardiandrea: sorry, I'm not sure about that but I think it worked just by adding target to the pipeline. I didn't pass any :dir to serve. And didn't have the chance to understand why it wasn't working :/

wagjo14:04:03

Hi there. Not a proper bug report, as I cannot reproduce it anymore, but we had an issue with AOTed classes in our uberjared project, after we renamed (to .cljc) and moved some source files around, that involved changing :resource-paths too. We then got a java.lang.ExceptionInInitializerError ... caused by .... No implementation of method: :do-reflect of protocol: #'clojure.reflect/Reflector found for class: clojure.reflect.JavaReflector error. The fun part is that after deleting all cache files in ~/.boot, everything works fine again.

alandipert15:04:39

@wagjo: that's really weird, but thanks for reporting - i think that's worth adding as a ticket to github if you have time, as a place to accumulate sightings at least

richiardiandrea19:04:55

I finally finished the first release of boot-pack-source so here goes the link https://github.com/Lambda-X/boot-pack-source/releases/tag/0.1.0 This takes the dependencies (either in input or in (get-env)) and includes the source files in a custom folder (`cljs-src`, which is not a good default name, but can be of course customized)

lucien.knechtli19:04:49

I'm having an issue with my boot task that is supposed to watch for js / sass changes and write them to the target directory. This is the relevant part of the task:

(comp
        (watch)
        (speak)
        (with-env
          {:directories #{"sass"}}
          (sass :sass-file "app.scss"
                :output-dir "."
                :line-numbers true
                :source-maps true))
        (reload :on-jsload 'app.main/init)
        (cljs-repl :nrepl-opts {:port 5710})
        (with-env cljs-env
                  (cljs :ids #{"app"} :optimizations :none))
        (target :dir #{"target/dev"}))

lucien.knechtli19:04:10

when I change a sass file, it seems to only reload the javascript

martinklepsch19:04:54

@richiardiandrea: did you give the sync-bucket task a go?

richiardiandrea19:04:12

@martinklepsch: I am trying as we speak 😄

martinklepsch19:04:27

@lucien.knechtli: do you have an explicit need for with-env?

martinklepsch19:04:37

@lucien.knechtli: it's somewhat advanced / probably not very beginner friendly

martinklepsch19:04:03

@lucien.knechtli: I think the issue in this case is task order though. Try putting the reload task before the sass task.

lucien.knechtli19:04:24

are there issues with using it? I guess I could just have :directories #{"src" "resources" "sass"} above

lucien.knechtli19:04:48

i'll try switching them

lucien.knechtli19:04:53

doesn't seem to have worked, it still reloads the js instead

martinklepsch19:04:40

@lucien.knechtli: try dropping the with-env stuff

martinklepsch19:04:20

@lucien.knechtli: I think actually that's probably it. I think with-env does not merge the filesets back together IIRC.

lucien.knechtli19:04:45

i'll give that a shot

martinklepsch19:04:49

@richiardiandrea: I like to think that I put a lot of thought into making it as versatile as possible so if you're not seeing how to achieve what you want let me know simple_smile

richiardiandrea19:04:42

@martinklepsch: a goal I would like to achieve is to gzip all the files > 500kb for instance...from what I saw confetti can easily handle that

martinklepsch19:04:22

confetti doesn't have gzip task. There's boot-gzip but that does not (yet) have a generic filter option for that kind of stuff: https://github.com/martinklepsch/boot-gzip

richiardiandrea19:04:21

good, I can then use that to zip and then just add the right metadata to the TmpFile I pass to confetti

martinklepsch19:04:14

@richiardiandrea: fwiw, if you use confetti's create-site as well you can just use cloudfront with on-the-fly gzip compression

richiardiandrea20:04:12

@juhoteperi: can I ask you if you can, of course when you have time, push a 2.6.0-SNAPSHOT including the last merge with fixed :add-meta?

cddr20:04:25

Does boot work just the same as lein wrt to authentication when fetching from private repositories?

micha20:04:15

@cddr: boot uses the same underlying technology, yes