Fork me on GitHub
#boot
<
2018-03-08
>
felipebarros02:03:21

@minikomi is what you have shareable? I would love to take a look at how you set things up.

minikomi04:03:22

sorry, it's a work project, i'll try and whip up an example

felipebarros05:03:50

Thank you, that would be awesome!

borkdude13:03:22

Does it matter if I put .clj or .cljs in resources or sources in boot? I’m slightly confused about this

dominicm15:03:12

@borkdude so, :source-paths are things that need processing, e.g. if you're going to AOT or compile to .js. :resource-paths are put into the jar untouched, and don't get processed by plugins.

borkdude15:03:47

What about cljc?

dominicm15:03:21

General rules of thumb: * Libraries cljs = resource-path clj = resource-path * App sass = source-path clj code = source-path for AOT entrypoint clj code = resource-path for non-AOT entrypoint cljs code = source path cljc, good question, resource path I think 🙂

dominicm15:03:42

If you're using https://github.com/tailrecursion/boot-heredoc then all your clj goes into source-paths, for example.

seancorfield17:03:49

@borkdude The way I look at it: :resource-paths -- things that should go into your JAR (and may include source to be compiled); :source-paths -- things that should NOT go into your JAR (but may include source to be compiled, such as tests etc); :asset-paths -- things that should go into your JAR but should not be compiled etc.

seancorfield17:03:04

cljc is "source to be compiled" -- do you want it in your JAR or not? 🙂

borkdude17:03:38

well, it’s also needed from clj, so I guess yes?

seancorfield17:03:46

(Since I never AOT anything, I have no sense of whether :source-paths code that gets AOT-compiled should end in up in the JAR but my gut says it would still be in :source-paths and therefore not in the JAR -- but you could always sift it over)

seancorfield17:03:49

(and I don't do any cljs work these days)

seancorfield17:03:08

Interesting rules of thumb @dominicm -- I hadn't thought about AOT entrypoint going into the source paths only.

dominicm18:03:18

@borkdude it isn't needed in the final jar, if you have the class.

borkdude18:03:21

@dominicm that’s only when you AOT right?

dominicm18:03:53

Yep, exactly. If you're using clojure.main, then you're fine.