Closed l3nz closed 5 years ago
This is a good idea, I would be interested in trying this lib out and eventually replace tools.cli
.
Checking the code...
I expect that it should be trivial; it is a matter of implementing namespaces platform.cljs
(where JVM stuff is) and optional.cljs
where we have optional stuff - the only "optional" that I guess will be there initially is the ability to decode JSON that JS surely has.
Please note that I created the current cljs namespaces in a hurry and functions there just return nil, all of them - so they will break sth else down the line.
Thank you for the quick answer! Maybe the link is not really the one you wanted to post? I see it points to a leiningen post :smile:
Oh I see, you wanted to write down the doc to how to configure lein for Cljs.
Now I have a clean compile (kind of) but tests still do not pass. Want to give it a try?
Yep will give it a try, no promise about time but I will do my best :smile:
I'm starting to think we should target Planck initially, as it seems the most likely thing one would use to write a CLI app.
The classic approach is to implement ClojureScript, keeping the amount of macros very low and then port it to self-host. I have done a bunch of those so I can help with that.
Link to keep track of https://github.com/abiocljs/abio
We have an initial working system with Planck: https://github.com/l3nz/cli-matic/blob/master/planck.md
I am closing this bug for now after release 0.3.0 and focusing on specific issues
Thank you! Not a plank user (yet) but I see no reason why it shouldn't work on any self-host environment (like lumo)
Yes, but you have to start somewhere :) at this point, as it's working, we cn just change the platforms.cljs adding stuff there for various environments! :smile:
Libs we depend on are supported.... what is to be done?
https://sunng.info/blog/writing-library-for-both-clojure-and-clojurescript.html