by Touche · 12y ago · 0 comments
cljsbuild app.cljs > app.js
And that's all. No project.clj, no waiting 5 seconds for clojure/jvm to load and Closure to compile it all.I think what GP is complaining about is the compilation step, which requires a JVM and isn't exactly the fastest.
Touche - You don't need project.clj and leiningen and can run a command basically like you're asking for. I'm not sure how much faster it is than using leiningen and cljsbuild, as I haven't tried it: https://github.com/clojure/clojurescript/wiki/Quick-Start#cl...
You could also use something like Nailgun too, if that is more desirable.
When I develop in ClojureScript, I generally avoid rebuilding altogether whenever possible (auto or otherwise) and instead have my editor send changes to the browser REPL. I don't know if you can do this with node too, but it would seem odd if not. This seems to be the preferred approach by most Clojure devs.