3 ms·
Would you articulate why it's a "no go" for you? Leiningen[1] takes away 99.9% of the pain of having to work directly with javac, maven, classpaths, etc. And l
by michaelsbradley 13y ago
Would you articulate why it's a "no go" for you?
Leiningen[1] takes away 99.9% of the pain of having to work directly with javac, maven, classpaths, etc. And lein-cljsbuild[2] offers a configuration-driven approach to compiling and testing.
It's perfectly possible to create setups where node (plus grunt, gulp, shell scripts, make, etc.) "drives" leiningen, and vice versa. About a year ago I contributed such a setup[3] to David Nolen's mori library.
[1] http://leiningen.org/ http://leiningen.org/
[2] https://github.com/emezeske/lein-cljsbuild https://github.com/emezeske/lein-cljsbuild
[3] https://github.com/swannodette/mori/blob/master/package.json#L41 https://github.com/swannodette/mori/blob/master/package.json...
- jkrems 13y agoBecause if other parts of your stack don't depend on Java, you have the overhead of having to install a complete java environment (on dev machines, CI, ...) just for compiling your front-end code. It also makes "language independent" tooling for javascript harder. Then again: I guess most people who use clojurescript are already using clojure so it wouldn't be a problem for them.
- michaelsbradley 13y agoGetting the JVM installed requires very little effort. On ubuntu linux, for example, apt-get can be used to install openjdk or Oracle's distribution. Travis CI provides java (with a choice of JDKs) in its testing environments. So, I understand your point, but the installation "overhead" seems more like a mole hill, hardly amounting to even a speed-bump sized obstacle.
- jkrems 13y agoI recently had write up for a README how to install the JDK and set it up correctly on OSX. You'd be surprised. Thanks to Oracle's policies it isn't even close to where other runtimes/sdks are (e.g. installing ruby, node, gcc, go, ocaml).
- michaelsbradley 13y agoWith homebrew and homebrew-cask installed on Mac OS 10.9, I was simply able to do: brew cask install java That might not cover the bases for every Java developer's needs, but leiningen seems to work fine with the resulting installation.
- jkrems 13y agoI'll have to look into versions (gotta be java7) but that looks pretty great - thanks!