Setup's a bit convoluted right now:
mkdir cljs-stuff
cd cljs-stuff
git clone https://github.com/zkim/nsfw.git
git clone https://zkim@github.com/zkim/cljs.git
git clone https://zkim@github.com/zkim/cljs-server.git
cd nsfw && lein install
cd ../cljs && lein install
cd ../cljs-server
lein deps && lein swank
- Connect to swank
- repl=>
(use cljs.watch)
- repl=>
(start-watch-project "./project.clj")
. This starts the cljs compiler, which recompiles cljs -> js on source changes in thesrc/cljs
directory. - repl=>
(use cljs-server.dev)
. This will start the server at port 8080. - http://localhost:8080
cljs sources are found in cljs-server/src/cljs/
.
Copyright (C) 2010 FIXME
Distributed under the Eclipse Public License, the same as Clojure.