Settings

Theme

A Minimal ClojureScript Project

thecomputersarewinning.com

6 points by ithayer 13 years ago · 3 comments

Reader

ilikedata 13 years ago

I'm interested in using clojurescript and your project is a nice entry point for real world usage.

One of the concerns I've had with clojurescript is the filesize of the generated js. Are there any techniques for reducing the filesize of the generated js? (I'm aware that closure compiler advanced mode is used). Clojurescript projects I've looked at seem to compile to a minimum filesize of ~70k (uncompressed). Using closure compiler advanced mode I'd like a bare bones hello world project to compile to something closer to alert("Hello World").

I understand yours includes jayq so not referring specifically to yours, however ideally I'd still like to see it compiled out to something along the lines of:

$(document).ready(function(){$("#btn").click(function() { alert("Hi!");});});

darrickwiebe 13 years ago

Under lein 2, the "lein run" task fails with the following error:

Exception in thread "main" java.lang.ClassNotFoundException: clojurescript-ohpointone.core

I installed the stable release of leiningen and it works fine.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection