Skip to content

Instantly share code, notes, and snippets.

@sgrove
Created November 27, 2012 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrove/1dfa6eae91dae6cf37c9 to your computer and use it in GitHub Desktop.
Save sgrove/1dfa6eae91dae6cf37c9 to your computer and use it in GitHub Desktop.
(defproject zenbox "0.1.0-SNAPSHOT"
:plugins [[lein-cljsbuild "0.2.9"]]
:description "Zenbox Reincarnation"
:url "http://www.zenboxapp.com/"
: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"
"clojurescript/src/clj"
"clojurescript/src/cljs"]
:min-lein-version "2.0.0"
:repl-options {:nrepl-middleware
[cemerick.piggieback/wrap-cljs-repl]}
:hooks [leiningen.cljsbuild]
:cljsbuild {
; Test command for running the unit tests in "test-cljs" (see below).
; $ lein cljsbuild test
:test-commands {"unit" ["phantomjs"
"phantom/unit-test.js"
"resources/private/html/unit-test.html"]}
:builds
{:dev
{:source-path "src/cljs"
:compiler
{: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"
"resources/externs/handlebars.js"
"resources/externs/md5.js"]}}
:prod
{:source-path "src/cljs"
:compiler
{:output-to "resources/public/js/bin/main.js"
:output-dir "resources/public/js/bin"
:optimizations :advanced
:externs ["externs/jquery.js"
"resources/externs/handlebars.js"
"resources/externs/md5.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.
:test
; 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"
:compiler
{:output-to "resources/private/js/unit-test.js"
:optimizations :whitespace
:pretty-print true
:externs ["externs/jquery.js"
"resources/externs/handlebars.js"
"resources/externs/md5.js"]}}}}
:main zenbox.server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment