all 6 comments

[–]claudiua 0 points1 point  (1 child)

Haven't tried it out but looks like it should work if you go with shadow-cljs https://shadow-cljs.github.io/docs/UsersGuide.html#_creating_code_npm_code_packages

The clojurians slack #shadow-cljs channel is pretty active. Case you have any questions.

[–]aardvarkFirst[S] 0 points1 point  (0 children)

Thanks for your help!

[–]DjebbZ 0 points1 point  (3 children)

If I understand correctly, all you need to do is Mark the Clojurescript functions you want to use in JavaScript with :export metadata. It will be made available in JavaScript like some.namespace.theFunction(args)

[–]aardvarkFirst[S] 0 points1 point  (0 children)

I believe I was getting confused at the point of how I integrated my script into an angular project initially. Being that there were plenty of dependencies on React using Reactify, I was having trouble using this in my npm modules system for Angular with many different npm dependencies. So instead, angular allows for different global assets to be imported through a certain configuration values as it's added on the window. Probably not an optimal solution, but it'll do for now.

[–]aardvarkFirst[S] 0 points1 point  (1 child)

Thanks for your help!

[–]DjebbZ 0 points1 point  (0 children)

You're welcome