Hi,

I use the following layout for my Clojure + ClojureScript coding:

project-directory/src/clj -- Clojure source
project-directory/src/cljs -- ClojureScript source

(I seem to recall that putting the directory with your cljs source on
the classpath causes weird problems when trying to compile, hence the
split.)

Then in the project directory I run

$ rlwrap java -cp
"/home/.../opt/clojurescript/lib/*:/home/.../opt/clojurescript/src/clj:/home/.../opt/clojurescript/src/cljs:/home/.../opt/clojurescript/test/cljs:src/clj"
clojure.main

user=> (require '[cljs.closure :as cljsc])
user=> (cljs/build "src/cljs" {:optimizations :advanced :output-to
"project-name.js"})

All this could probably be simplified using cljs-watch:

http://github.com/ibdknox/cljs-watch

For some reason not entirely clear to me, I don't really mind my
current setup (with the ridiculous rlwrap thing easily reachable
through zsh history); I'll probably switch to cljs-watch as soon as
that changes.

Sincerely,
Michał

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to