(defproject thi.ng/ws-bln-1 "0.1.0-SNAPSHOT"
  :description   "thi.ng x Studio NAND Berlin workshop #1"
  :url           "-bln-1"
  :license       {:name "Apache Software License 2.0"
                  :url "-2.0"}
  :dependencies  [[org.clojure/clojure "1.8.0"]
                  [org.clojure/clojurescript "1.7.228"]
                  [org.clojure/core.async "0.2.374"]
                  [thi.ng/geom "0.0.908"]
                  [thi.ng/morphogen "0.2.0-SNAPSHOT"]
                  [thi.ng/fabric "0.0.388"]
                  [thi.ng/validate "0.1.3"]
                  [thi.ng/domus "0.2.0"]
                  [cljsjs/codemirror "5.7.0-3"]
                  [reagent "0.5.1"]
                  [cljs-log "0.2.2"]]

  :plugins       [[lein-figwheel "0.5.0-4"]
                  [lein-cljsbuild "1.1.1"]
                  [lein-environ "1.0.0"]]

  :clean-targets ^{:protect false} ["target" "resources/public/js"]

  :profiles      {:dev  {:dependencies [[criterium "0.4.3"]]}
                  :prod {:env {:log-level 4}}}
  
  :cljsbuild     {:builds [{:id           "dev"
                            :source-paths ["src"]
                            :figwheel     {:on-jsload "day2.webgl/on-js-reload"}
                            :compiler     {:main                 day2.webgl
                                           :optimizations        :none
                                           :asset-path           "js/out"
                                           :output-to            "resources/public/js/app.js"
                                           :output-dir           "resources/public/js/out"
                                           :source-map           true
                                           :source-map-timestamp true
                                           :cache-analysis       true}}
                           {:id           "min"
                            :source-paths ["src"]
                            :compiler     {:main          day2.webgl
                                           :optimizations :advanced
                                           :pretty-print  false
                                           :asset-path    "js/day2/out"
                                           :output-to     "resources/public/js/app.js"}}]}

  :figwheel      {:http-server-root "public"         ;; default and assumes "resources"
                  :server-port 3449                  ;; default
                  :css-dirs ["resources/public/css"] ;; watch and update CSS
                  })

 default and assumes "resources"
 default
 watch and update CSS
(defproject thi.ng/ws-bln-1 "0.1.0-SNAPSHOT"
  :description   "thi.ng x Studio NAND Berlin workshop #1"
  :url           "-bln-1"
  :license       {:name "Apache Software License 2.0"
                  :url "-2.0"}
  :dependencies  [[org.clojure/clojure "1.8.0"]
                  [org.clojure/clojurescript "1.7.228"]
                  [org.clojure/core.async "0.2.374"]
                  [thi.ng/geom "0.0.908"]
                  [thi.ng/morphogen "0.2.0-SNAPSHOT"]
                  [thi.ng/fabric "0.0.388"]
                  [thi.ng/validate "0.1.3"]
                  [thi.ng/domus "0.2.0"]
                  [cljsjs/codemirror "5.7.0-3"]
                  [reagent "0.5.1"]
                  [cljs-log "0.2.2"]]

  :plugins       [[lein-figwheel "0.5.0-4"]
                  [lein-cljsbuild "1.1.1"]
                  [lein-environ "1.0.0"]]

  :clean-targets ^{:protect false} ["target" "resources/public/js"]

  :profiles      {:dev  {:dependencies [[criterium "0.4.3"]]}
                  :prod {:env {:log-level 4}}}
  
  :cljsbuild     {:builds [{:id           "dev"
                            :source-paths ["src"]
                            :figwheel     {:on-jsload "day2.webgl/on-js-reload"}
                            :compiler     {:main                 day2.webgl
                                           :optimizations        :none
                                           :asset-path           "js/out"
                                           :output-to            "resources/public/js/app.js"
                                           :output-dir           "resources/public/js/out"
                                           :source-map           true
                                           :source-map-timestamp true
                                           :cache-analysis       true}}
                           {:id           "min"
                            :source-paths ["src"]
                            :compiler     {:main          day2.webgl
                                           :optimizations :advanced
                                           :pretty-print  false
                                           :asset-path    "js/day2/out"
                                           :output-to     "resources/public/js/app.js"}}]}

                  })
