A Leiningen template for minimal ClojureScript project with lein-cljsbuild and lein-ring.
It's intended to be as small as possible - only use Ring, ClojureScript, lein-cljsbuild, and lein-ring. Users are free to add any other libraries as they like.
It has complete configuration for lein-cljsbuild. The plugin compiles .cljs files so that Ring can immediately serve them, it also is configured to compile and include them in build.
Create project:
lein new cljs-kickoff my-project
Up and running (with CLJS compilation):
cd my-project
lein ring server
Interactive developmnt:
# Shell 1 - start server:
cd my-project
lein ring server
# Shell 2 - cljsbuild will recompile cljs whenever the files change:
cd my-project
lein cljsbuild auto
Package and run from jar:
cd my-project
lein ring uberjar
java -jar target/my-project-0.1.0-SNAPSHOT-standalone.jar
This project is intentionally minimal. There's plenty resources on ClojureScript on the web. Feel free to take a look at the posts on my blog at http://squirrel.pl/blog/tag/clojurescript/
Copyright © 2012 Konrad Garus
Distributed under the Eclipse Public License, the same as Clojure.