Fork me on GitHub
#cljs-dev
<
2021-07-21
>
plexus07:07:29

You're talking about the cljs.main -e flag, right?

dnolen12:07:13

even -i is a possibility since if I recall that looks on the classpath

dnolen12:07:43

all the suggestions are just to avoid custom build stuff

plexus14:07:46

See above, we can't dictate that people use cljs.main. Anyway, thanks for the suggestions. I don't see any way that we can do this with what's available, and I understand that test-runner specific functionality is not considered something that belongs in the compiler, so we'll do a workaround. I think we can do something with auto-generating a namespace cljs file that works well enough.

dnolen15:07:47

@plexus I don't really understand why you can't allow cljs.main

dnolen15:07:20

does a Clojure tool exist that doesn't allow executing main?

dnolen15:07:38

This was always possible even with Lein

dnolen15:07:40

I suppose if you're going through shadow - but I don't see why shadow can't just be outlier

dnolen15:07:30

the compiler build fn always took forms, so that's another possibility, :main could be a form or seq of forms

dnolen15:07:37

re: the point about advanced compiled tests

dnolen15:07:45

but codegen also seems fine to me