4 ms·
I'm slightly biased in that I've played with cljs more than scala-js, but it was tough to find a productive workflow from the time I started looking into it. F
by smrtinsert 13y ago
I'm slightly biased in that I've played with cljs more than scala-js, but it was tough to find a productive workflow from the time I started looking into it. For example with lein-droid you run a lein command to start the android app with embedded repl and connect to it, with seesaw you can use your local repl, with clojurescript ???
Instead there seemed to be a whirlwind of finding info on lein-cljsbuild/cljs and dealing with little problems like the repl not finding jarred or external js files. also online theres all sorts of grumbles about browser repl instability so it gives you a big warning feeling even though it seems like the only way through. Ultimately I felt lost in the tooling and setup. I haven't had time to investigate clojurescript in lighttable, maybe its easier there. I just figured any editors repl and the source files should be all you need to start working productively with it.
By contrast I haven't done much scalajs yet, but it builds like just another sbt project (after a local install of the scala-js project itself). I was able to clone the sample scala-js app run sbt;/packageJS and see the js file. Sure that's not updating live, but its clean and straightforward from the first time you investigate it. 5-10 minutes to "wow".
Good luck, I really want clojurescript to become easier to use as I really enjoy clojure.
- brandonbloom 13y agocljs-build is very good for non-interactive workflows, but I agree that the REPL situation is less than ideal. I mostly develop in a CLJ REPL and then only test in the browser with auto-refresh, in a more traditional web-app style. The browser REPL is the biggest offender, but luckily there is now https://github.com/cemerick/austin https://github.com/cemerick/austin which is a huge improvement in usability, stability, and features. Give that a try!