(defproject auto-ap "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :min-lein-version "2.0.0"
  :repositories {"my.datomic.com" {:url "https://my.datomic.com/repo"
                                   :username "datomic@brycecovertoperations.com"
                                   :password "0ba303bb-01be-471c-bc91-1dfd3172a96a"}}
  :dependencies [[org.clojure/clojure "1.9.0"]
                 [org.clojure/clojurescript "1.10.238"]
                 [postgresql/postgresql "9.3-1102.jdbc41"]
                 [com.datomic/datomic-pro "0.9.5703"  :exclusions [com.google.guava/guava]]
                 [compojure "1.6.0"]
                 [kibu/pushy "0.3.8"]
                 [bidi "2.1.2"]
                 [ring/ring-defaults "0.2.1"]
                 [ring "1.4.0"]
                 [yogthos/config "0.8"]
                 [dk.ative/docjure "1.12.0"]
                 [org.clojure/java.jdbc "0.7.3"]
                 [cljsjs/dropzone "4.3.0-0"]
                 [cljsjs/recharts "1.4.2-0"]
                 [clj-fuzzy "0.4.1"]
                 [honeysql "0.9.2"]
                 [com.walmartlabs/lacinia "0.25.0"]
                 ;; https://mvnrepository.com/artifact/postgresql/postgresql
                 [vincit/venia "0.2.5"]
                 [postgresql/postgresql "9.3-1102.jdbc41"]
                 [digest "1.4.8"]
                 [nilenso/honeysql-postgres "0.2.4"]
                 [cljs-http "0.1.44"]
                 [clj-http "3.7.0"]
                 [clj-pdf "2.2.33"]
                 [org.clojure/core.async "0.3.465"]
                 [fogus/ring-edn "0.3.0"]
                 [buddy/buddy-auth "2.1.0"]
                 [buddy/buddy-sign "2.1.0"]
                 [org.clojure/tools.nrepl "0.2.13"]
                 [clj-time "0.14.2"]
                 [io.forward/clojure-mail "1.0.7"]
                 [ring/ring-json "0.4.0"
                  :exclusions [cheshire]]
                 [com.cemerick/url "0.1.1"]
                 [amazonica "0.3.121"
                  :exclusions [com.amazonaws/aws-java-sdk
                               com.amazonaws/amazon-kinesis-client]]
                 [com.amazonaws/aws-java-sdk-core "1.11.282"]
                 [com.amazonaws/aws-java-sdk-ses "1.11.282"]
                 [com.amazonaws/aws-java-sdk-sqs "1.11.282"]
                 [com.amazonaws/aws-java-sdk-s3 "1.11.282"]
                 [org.clojure/data.json "0.2.6"]
                 [org.clojure/data.csv "0.1.4"]
                 [cider/cider-nrepl "0.16.0"]
                 [io.rkn/conformity "0.5.1"]
                 [hiccup "1.0.5"]]
  :plugins [[lein-ring "0.9.7"]
            [lein-cljsbuild "1.1.5"]]
  :clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
  :ring {:handler auto-ap.handler/app}
  :source-paths ["src/clj" "src/cljc"]
  :resource-paths ["resources"]

  :figwheel {:css-dirs ["resources/public/css"]
             :ring-handler auto-ap.handler/app
             :nrepl-middleware ["cider.nrepl/cider-middleware"]
             :nrepl-port 7888}

  :aliases {"dev" ["do" "clean"
                        ["pdo" ["figwheel" "dev"]]]
            "build" ["do" "clean"
                     ["uberjar"]]}

  :profiles
  {:dev

   {:dependencies [[binaryage/devtools "0.9.4"]
                   [javax.servlet/servlet-api "2.5"]
                   [figwheel-sidecar "0.5.13"]
                   [com.cemerick/piggieback "0.2.2"]
                   ]

    :plugins      [[lein-figwheel "0.5.13"]
                   [lein-pdo "0.1.1"]
                   [cider/cider-nrepl "0.16.0"]]
    :jvm-opts ["-Dconfig=config/dev.edn" "--add-modules" "java.xml.bind"]}
   :uberjar {:prep-tasks [["cljsbuild" "once" "min"] "compile"]}
   :provided {:dependencies [[org.clojure/clojurescript "1.10.238"]
                             [reagent "0.7.0" ]
                             [cljsjs/react-transition-group "2.4.0-0"] 
                             [re-frame "0.10.2"]
                             [com.andrewmcveigh/cljs-time "0.5.2"]]}}

  :cljsbuild
  {:builds
   [{:id           "dev"
     :source-paths ["src/cljs" "src/cljc"]
     :figwheel     {:on-jsload "auto-ap.core/mount-root"}
     :compiler     {:main                 auto-ap.core
                    :output-to            "resources/public/js/compiled/app.js"
                    :output-dir           "resources/public/js/compiled/out"
                    :asset-path           "/js/compiled/out"
                    :source-map-timestamp true
                    :preloads             [devtools.preload]
                    :external-config      {:devtools/config {:features-to-install :all}}
                    
                    :install-deps true
                    :infer-externs true
                    }}

    {:id           "min"
     :source-paths ["src/cljs" "src/cljc"]
     :jar true
     :compiler     {:main            auto-ap.core
                    :output-to       "resources/public/js/compiled/app.js"
                    
                    :optimizations   :advanced
                    :closure-defines {goog.DEBUG false}
                    :pretty-print    false}}


    ]}

  :main auto-ap.server

  :aot [auto-ap.server auto-ap.datomic.migrate]

  :uberjar-name "auto-ap.jar"

  :prep-tasks [ "compile"])

