7 ms·
Use lein-cljsbuild to compile ClojureScript as soon as the file change is made. After the intial JVM startup, compilation is instant. https://github.com/emezesk
by python3 13y ago
Use lein-cljsbuild to compile ClojureScript as soon as the file change is made. After the intial JVM startup, compilation is instant. https://github.com/emezeske/lein-cljsbuild https://github.com/emezeske/lein-cljsbuild
-- more --
ClojureScript is the Clojure language compiler that targets JavaScript. It compiles to Google Closure (not Clojure) JavaScript, but it can also target NodeJS. ClojureScript lets you use Clojure in the browser, adds Clojure data types to the JavaScript language, and allows for JavaScript to interact with the Clojure datatypes. Here's the side by side comparison https://himera.herokuapp.com/synonym.html https://himera.herokuapp.com/synonym.html
One of the most obvious additions to JavaScript is the ability to partition your JavaScript with namespaces.
- arkx 13y agoDefinitely not instant compilation. The app I'm currently working on has 6k lines of code and the incremental compilations take a little over 6 seconds.
- swannodette 13y agoHmm, sounds like you have a fairly large namespace instead of separate ones?