Fork me on GitHub
#shadow-cljs
<
2018-08-07
>
eoliphant00:08:09

Yeah @thheller, let me try that, I tried “aws-sdk/config” but that didn’t do it

Josh Horwitz03:08:02

Hey all, is there any good docs/tutorial on using shadow-cljs to write a command line tool?

daviwil04:08:57

@joshua.d.horwitz I don't know of one specifically, but you should be able to do this fairly easily by generating a node script build and wrapping it with nexe - Node script build: https://shadow-cljs.github.io/docs/UsersGuide.html#target-node - nexe: https://github.com/nexe/nexe

y.khmelevskii06:08:48

hi! How can I require some dependency, for example, cljs.spec.test.alpha only in :dev mode? I need this dependency not to be in release bundle.

thheller06:08:02

@y.khmelevskii people generally only require cljs.spec.test.alpha in test namespaces and not your regular ones

thheller06:08:33

@eoliphant its probably aws-sdk/lib/config

y.khmelevskii06:08:44

thank you @thheller. But I can’t do something like this:

#?@(:dev [[cljs.spec.test.alpha]])
I need to create a separate build section in shadow-cljs.edn and I need to use .cljc files, right? Maybe can I use additional external path for :dev and :release mode.

thheller06:08:18

do you actually require cljs.spec.test.alpha in any of your main namespaces though?

thheller06:08:38

or just in test namespaces that aren't actually used by your normal build?

jjfine15:08:01

is there any way to get verbose compile output? compilation is hanging and i'm having trouble figuring out where the issue is.

thheller15:08:55

shadow-cljs compile your-build --verbose

4
thheller15:08:19

let me know if you need help. compilation should never hang. it may just take a while if you use a lot of JS deps.

jjfine15:08:50

cool, that at least narrowed it down to the file that's causing it

thheller15:08:50

does it actually hang or just compile forever? I have never had any reports of a hanging compilation

jjfine16:08:48

compile forever might be more accurate

jjfine16:08:18

i think i've narrowed it down to a macro

jjfine16:08:29

maybe its expanding infinitely

jjfine16:08:41

its stuck compiling one of my source files and maxing out my cpu

thheller16:08:43

yeah sounds like a loop