                                         :optimizations :none
                                         :pretty-print  true}}}}
 
-  :profiles {:dev {:source-paths ["env/dev/clj"]
+  :profiles {:casper-test {
+                           ;:source-paths ["env/dev/clj"]
+                           ;:test-paths ["test/clj"]
+
+                           ;:dependencies [[figwheel "0.2.5"]
+                           ;               [figwheel-sidecar "0.2.5"]
+                           ;               [com.cemerick/piggieback "0.1.5"]
+                           ;               [weasel "0.6.0"]]
+
+                           ;:repl-options {:init-ns caspercljs.server
+                           ;               :nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
+
+                           ;:plugins [[lein-figwheel "0.2.5"]]
+                           ;
+                           ;:figwheel {:http-server-root "public"
+                           ;           :server-port 3449
+                           ;           :css-dirs ["resources/public/css"]
+                           ;           :ring-handler caspercljs.server/http-handler}
+
+                           :env {:is-dev true}
+
+                           :cljsbuild {:test-commands {"casper" ["casperjs" "test" "resources/public/js/app_test.js"]
+                                                       ;"test" ["phantomjs" "env/test/js/unit-test.js" "env/test/unit-test.html"]
+                                                       }
+                                       :builds {
+                                                ;:app {:source-paths ["env/dev/cljs"]}
+                                                :test {:source-paths [ "test/cljs"] ;; "src/cljs"
+                                                       :compiler {:output-to     "resources/public/js/app_test.js"
+                                                                  :output-dir    "resources/public/js/test"
+                                                                  :source-map    "resources/public/js/test.js.map"
+                                                                  ;:preamble      ["react/react.min.js"]
+                                                                  :optimizations :whitespace
+                                                                  :pretty-print  false}}}}}
+
+             :dev {:source-paths ["env/dev/clj"]
                    :test-paths ["test/clj"]
 
                    :dependencies [[figwheel "0.2.5"]


  :uberjar-name "caspercljs.jar"

  :cljsbuild {:builds {:app {:source-paths ["src/cljs"]
                             :compiler {:output-to     "resources/public/js/app.js"
                                        :output-dir    "resources/public/js/out"


                   :env {:is-dev true}

                   ;:cljsbuild {:test-commands {"casper" ["casperjs" "test" "resources/public/js/app_test.js"]
                   ;                            ;"test" ["phantomjs" "env/test/js/unit-test.js" "env/test/unit-test.html"]
                   ;                            }
                   ;            :builds {
                   ;                     ;:app {:source-paths ["env/dev/cljs"]}
                   ;                     :test {:source-paths [ "test/cljs"] ;; "src/cljs"
                   ;                            :compiler {:output-to     "resources/public/js/app_test.js"
                   ;                                       :output-dir    "resources/public/js/test"
                   ;                                       :source-map    "resources/public/js/test.js.map"
                   ;                                       ;:preamble      ["react/react.min.js"]
                   ;                                       :optimizations :whitespace
                   ;                                       :pretty-print  false}}}}
                   }

             :uberjar {:source-paths ["env/prod/clj"]
                       :hooks [leiningen.cljsbuild]
