Fork me on GitHub
#shadow-cljs
<
2018-01-18
>
Jon01:01:40

so, means generated js is old...

sooheon02:01:42

Hey all, has @thheller gone into more detail anywhere about why boot and shadow-cljs do not mix? Is it an actual performance problem, or just a lack of experience with the two together?

robert-stuttaford05:01:15

hey folks - any plan to support auth-only maven repos? basically, can’t use shadow-cljs and pro datomic together in a codebase, which is a pretty substantial hurdle

robert-stuttaford05:01:32

by that i mean this facility in lein:

robert-stuttaford05:01:39

:repositories
{"" {:url      ""
                   :username "xxx"
                   :password "yyy"}}

thheller09:01:53

@robert-stuttaford at the moment you can use lein to manage the classpath. you just specify :lein true in shadow-cljs.edn and setup your :dependencies and :source-paths via lein. everything will be executed via lein so :repositories should work. https://shadow-cljs.github.io/docs/UsersGuide.html#_build_tool_integration

thheller09:01:50

@sooheon lack of experience on my part. @jgdavey knows more and created https://github.com/jgdavey/boot-shadow-cljs

thheller09:01:17

@robert-stuttaford shadow-cljs should also support :repositories but I never tested it so I can’t verify it actually works. try to just specify it at the top level in shadow-cljs.edn. you can use :username #shadow/env "DATOMIC_USERNAME" if you prefer to keep the username/password out of shadow-cljs.edn and use env variables instead.

robert-stuttaford10:01:43

thank you @thheller, i’ll kick the tires!

thheller10:01:04

@robert-stuttaford I use the same maven interop lib as lein or boot so it may just work. https://github.com/cemerick/pomegranate

thheller10:01:30

@robert-stuttaford datomic has cljs support? Otherwise should not be required if you just want to build cljs?

robert-stuttaford10:01:41

@thheller all clj / cljs / cljc source is in one place, so datomic code will be on the classpath, even if the cljs doesn’t use it

thheller10:01:41

that doesn't matter

thheller10:01:58

shadow-cljs will only touch code that is actually referenced somewhere in cljs

thheller10:01:01

only problem may be macro files which also require some datomic code. otherwise it should be fine

robert-stuttaford10:01:10

ah, that’s good to know! definitely different to cljsbuild 🙂

tianshu19:01:29

can I start a watch task without blocking in REPL?

thheller23:01:31

@doglooksgood you mean starting the watch from the REPL? (shadow.cljs.devtools.api/watch :build) does not block the REPL.