Skip to content

jtfmumm/cljs-exnihilo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cljs-exnihilo

A Lein template for ClojureScript projects.

Usage

Dependencies

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.

Creating a New Project

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.

License

Copyright © 2013 John Mumm

Distributed under the Eclipse Public License.

About

A lein template for ClojureScript projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published