This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-08
Channels
- # aws (3)
- # beginners (126)
- # boot (19)
- # cider (31)
- # cljs-dev (324)
- # clojure (96)
- # clojure-boston (2)
- # clojure-denver (9)
- # clojure-dusseldorf (2)
- # clojure-greece (4)
- # clojure-italy (5)
- # clojure-losangeles (1)
- # clojure-spec (18)
- # clojure-uk (59)
- # clojurebridge (1)
- # clojurescript (184)
- # community-development (29)
- # cursive (2)
- # datascript (2)
- # datomic (5)
- # emacs (1)
- # figwheel (6)
- # fulcro (270)
- # hoplon (2)
- # jobs (1)
- # jobs-discuss (1)
- # keyboards (2)
- # leiningen (2)
- # london-clojurians (2)
- # luminus (10)
- # mount (1)
- # off-topic (26)
- # onyx (8)
- # other-languages (1)
- # parinfer (1)
- # protorepl (6)
- # re-frame (23)
- # reagent (61)
- # reitit (5)
- # shadow-cljs (100)
- # spacemacs (3)
- # sql (19)
- # unrepl (90)
- # vim (25)
@minikomi is what you have shareable? I would love to take a look at how you set things up.
Thank you, that would be awesome!
Repo: https://github.com/minikomi/simple-static Netlify built site: https://sad-poincare-04be9d.netlify.com/ Netlify build log after 2nd run (after deps are installed): https://gist.github.com/minikomi/c16b1f67a9d2b3f45ab3debd4f25818d
Does it matter if I put .clj or .cljs in resources or sources in boot? I’m slightly confused about this
@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.
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 🙂
If you're using https://github.com/tailrecursion/boot-heredoc then all your clj goes into source-paths, for example.
@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.
@seancorfield what about cljc?
cljc
is "source to be compiled" -- do you want it in your JAR or not? 🙂
(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)
(and I don't do any cljs work these days)
Interesting rules of thumb @dominicm -- I hadn't thought about AOT entrypoint going into the source paths only.