A Lein template for ClojureScript projects.
You will need lein 2.0+. See here for installation instructions.
You will need leinjacker, so make sure you have at least the following :
{:user {:plugins [[leinjacker "0.4.1"]] }}
in the profiles.clj file in your .lein directory (which is usually in your home directory).
Once you've created your project directory as detailed below, you may need to navigate to that directory and run :
lein deps
to grab the leinjacker dependencies.
In order to create a new project (and an associated directory with the same name), run :
lein new cljs-exnihilo name-of-project
Now run
cljsbuild
to initially compile cljs files.
In order to keep cljsbuild running in the background, recompiling cljs files when they are changed, run :
cd name-of-project
lein cljsbuild auto
In a separate terminal, navigate to your directory and start the ring server:
cd name-of-project
lein ring server
You are now ready to edit your project.
Copyright © 2013 John Mumm
Distributed under the Eclipse Public License.