Skip to content

konrad-garus/cljs-kickoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cljs-kickoff

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.

Included packages

:dependencies [[org.clojure/clojure "1.5.1"]
               [org.clojure/clojurescript "0.0-2156"]
               [ring "1.2.1"]]
:plugins      [[lein-cljsbuild "1.0.2"]
               [lein-ring "0.8.10"]]
:hooks        [leiningen.cljsbuild]

Usage

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

More resources

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/

License

Copyright © 2012 Konrad Garus

Distributed under the Eclipse Public License, the same as Clojure.

About

Minimal Leiningen template for ClojureScript with lein-cljsbuild

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published