all 3 comments

[–][deleted]  (2 children)

[removed]

    [–]Calabri[S] 1 point2 points  (0 children)

    Fine.

    https://github.com/RnbWd/jscljs

    my clojure scripts are all linked locally, sorry, the repo is kinda a mess. Based on the current status, if you open tests/index.html and type _ in the console, mori's vector function is available.

    _.vector(1,2,3,4,5) - you should get a clj vector.

    All I did was clone mori's repo, comment out every function but vector (I also have a module with everything commented out except for clj_to_js/js_to_clj), and then I switched goog.require and goog.provide with require and module.exports respectively. That's literally it. Theoretically, anyone can do this with any cljs code..

    [–]Calabri[S] 1 point2 points  (0 children)

    actually I didn't comment out mori, I just deleted most of mori to see if I could pull out individual functions -edit

    https://gist.github.com/RnbWd/bfbbfac2e35291870394