Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defproject zenbox "0.1.0-SNAPSHOT"
:plugins [[lein-cljsbuild "0.2.9"]]
:description "Zenbox Reincarnation"
:url ""
:dependencies [[org.clojure/clojure "1.5.0-beta1"]
[org.clojure/google-closure-library "0.0-2029"]
[org.clojure/google-closure-library-third-party "0.0-2029"]
[fetch "0.1.0-alpha2"]
[jayq "0.2.2"]
[noir "1.3.0-beta10"]
[domina "1.0.1"]
[com.cemerick/piggieback "0.0.2"]]
:source-paths ["src/clj"
:min-lein-version "2.0.0"
:repl-options {:nrepl-middleware
:hooks [leiningen.cljsbuild]
:cljsbuild {
; Test command for running the unit tests in "test-cljs" (see below).
; $ lein cljsbuild test
:test-commands {"unit" ["phantomjs"
{:source-path "src/cljs"
{:output-to "resources/public/js/bin-debug/main.js"
:output-dir "resources/public/js/bin-debug"
:optimizations :whitespace
:pretty-print true
:externs ["externs/jquery.js"
{:source-path "src/cljs"
{:output-to "resources/public/js/bin/main.js"
:output-dir "resources/public/js/bin"
:optimizations :advanced
:externs ["externs/jquery.js"
; This build is for the ClojureScript unit tests that will
; be run via PhantomJS. See the phantom/unit-test.js file
; for details on how it's run.
; The test runner is defined in test/runner.cljs, and the test are defined in test/zenbox/main_test.cljs.
; But if I use :source-path "test/" then the Zenbox cljs (from src/cljs/*) isn't included.
; Should I manually require the :dev build of cljs in phantom/unit-test.html ?
{:source-path "src/cljs"
{:output-to "resources/private/js/unit-test.js"
:optimizations :whitespace
:pretty-print true
:externs ["externs/jquery.js"
:main zenbox.server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.