                                :asset-path           "js/compiled/out"
                                :output-to            "resources/public/js/compiled/clojure_template.js"
                                :output-dir           "resources/public/js/compiled/out"
-                               :source-map-timestamp true}}}}
+                               :source-map-timestamp true}}
+
+               {:id           "test"
+                :source-paths ["src/client" "src/common" "test/client"]
+                :compiler     {:main          clojure-template.test-runner
+                               :output-to     "resources/public/js/compiled/testable.js"
+                               :optimizations :none}}
+
+               {:id           "min"
+                :source-paths ["src/client" "src/common"]
+                :jar          true
+                :compiler     {:main                 clojure_template.client
+                               :output-to            "resources/public/js/compiled/clojure_template.js"
+                               :output-dir           "target"
+                               :source-map-timestamp true
+                               :optimizations        :advanced
+                               :pretty-print         false}}]}
 
   ;; When running figwheel from nREPL, figwheel will read this configuration
   ;; stanza, but it will read it without passing through leiningen's profile

  :repl-options {:init-ns user}

  :cljsbuild {:builds
              {:app
               {:source-paths ["src/client" "src/common"]
                :figwheel     true
                ;; Alternatively, you can configure a function to run every time figwheel reloads.
                ;; :figwheel {:on-jsload "clojure-template.client/on-figwheel-reload"}

              :ring         {:handler               clojure-template.server/http-handler
                             :stacktrace-middleware prone.middleware/wrap-exceptions}

              :source-paths ["dev"]

              :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}

             :uberjar
             {:source-paths ^:replace ["src/server" "src/common"]
              :prep-tasks   ["compile" ["cljsbuild" "once" "min"] ["garden" "once"]]
              :hooks        []
              :omit-source  true
              :aot          :all}})
