3 ms·
I wanted to try out ClojureScript a while ago, but found the tooling around it very complex since I also didn't have any experience with Clojure and Leiningen.
by joaomsa 13y ago
I wanted to try out ClojureScript a while ago, but found the tooling around it very complex since I also didn't have any experience with Clojure and Leiningen.
Is there a straightforward starter guide around?
- islon 13y agoIt used to be a PITA, it's still not perfect but much better. take a look at lein-cljsbuild (https://github.com/emezeske/lein-cljsbuild https://github.com/emezeske/lein-cljsbuild) to create you project, there you can just create an html and add the resulting js in the html, so you can test in the browser. No need for web servers or anything.
- ianbishop 13y agoModern CLJS does a pretty good job of guiding you through Clojurescript's tooling: https://github.com/magomimmo/modern-cljs https://github.com/magomimmo/modern-cljs
- smrtinsert 13y agoClojureScript Up and Running is actually pretty good. Lein I've gotten to know simply by using it, getting snippets from blogs here and there. Once I get better with it, I'm curious to see if I could use it for Java builds. It's the build tool Java ppl have been waiting for I think.
- dktbs 13y agoI'm going through "ClojureScript Up and Running" right now, and I'd also recommend it. However, for folks who just want to give cljs a try, lein-cljsbuild does make it pretty easy at this point. Once you have lein and the lein-cljsbuild plug-in installed, the basic information on how to get a project up and running is here: https://github.com/emezeske/lein-cljsbuild#just-give-me-a-damned-example-already https://github.com/emezeske/lein-cljsbuild#just-give-me-a-da... They also include example projects in the lein-cljsbuild repo that make use of some of the popular clojure web libraries like ring and compojure: https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple https://github.com/emezeske/lein-cljsbuild/tree/master/examp...