Fork me on GitHub

Ok - I tried to run my project with only deps.edn and clj and the problem I encountered is that I need to leverage the javac task in boot in order to precompile the java source within protobuf. I went back and wrote a boot task to only compile the requisite namespace and commit! the fileset and this looked good. Unfortunately, I subsequently received the same error when trying to compose in the hoplon task as well as the cljs task. I'm going to try and add these tasks to my aot-prob example to see if it breaks down there. I'm suspicious that as I'm trying to glob the server and client code into the same boot pipeline with deps.edn for both clj and cljs deps - there's some cljs unfriendly require in the clj transitive deps that breaks down in the cljs pipe.


Sounds like you might want to use aliases to separate the server and client concerns at the deps.edn level and then supply the alias when using boot...?


Also, re: javac -- I'd either wrap the use of clj in a shell/make script to handle compiling of the Java code or write a small Clojure script to do it and run that as part of your clj command(s).


@U0HS2BJM7 I recommend not using the hoplon task and just manually include hoplon as a library - there is little difference


@U04V70XH6 - I'll give these ideas a shot.. first trying to distill my problem some more.


@U0ALQHJRF - Thanks for the suggestion, I hadn't tried using hoplon this way yet; will be one less hurdle to overcome.


@U0ALQHJRF - I've tried removing the hoplon task and changed my .hl to a plain .cljs with the ^{:hoplon/page "index.html"} metadata in the namespace (per the doc) - I don't see the compiled html anywhere in my boot fileset. Do I have to do something beyond just invoking the cljs task?


@U0ALQHJRF - Ok, I figured it out. I just went back to a root index.html that adds the main.js and invokes a function exposed in my hoplon cljs that loads the generated html into a div.


@U0HS2BJM7 yep thats pretty much how to do it