From d9bd03f68eb5177bc41481d7e2b950959bf2dcea Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Tue, 22 Dec 2020 16:39:57 -0800 Subject: [PATCH] made build work once again. --- dev.cljs.edn | 2 -- min.cljs.edn | 19 +++++++++++++++++-- project.clj | 2 +- src/clj/auto_ap/routes/yodlee2.clj | 6 ------ 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/dev.cljs.edn b/dev.cljs.edn index dc8d5bb7..145a36f1 100644 --- a/dev.cljs.edn +++ b/dev.cljs.edn @@ -3,8 +3,6 @@ :output-to "resources/public/js/compiled/app.js" :output-dir "resources/public/js/compiled/" :source-map true - #_#_:pretty-print true - #_#_:pseudo-names true :infer-externs true :closure-defines {cljs.core/*global* "window"} diff --git a/min.cljs.edn b/min.cljs.edn index 43ef91dc..00104930 100644 --- a/min.cljs.edn +++ b/min.cljs.edn @@ -1,7 +1,22 @@ {:main auto-ap.core :output-to "resources/public/js/compiled/app.js" + :output-dir "resources/public/js/compiled/" + :source-map "resources/public/js/compiled/app.js.map" :parallel-build true :optimizations :advanced - :closure-defines {goog.DEBUG false} - :pretty-print false} + :pretty-print false + + :target :bundle + #_#_:pretty-print true + #_#_:pseudo-names true + + :infer-externs true + :closure-defines {cljs.core/*global* "window" + goog.DEBUG false} + :bundle-cmd {:none ["npx" "webpack" "--mode=development" :output-to + "--output-path" :final-output-dir + "--output-filename" :final-output-filename] + :default ["npx" "webpack" "--mode=production" :output-to + "--output-path" :final-output-dir + "--output-filename" :final-output-filename]}} diff --git a/project.clj b/project.clj index b0d8914a..654a1db7 100644 --- a/project.clj +++ b/project.clj @@ -81,7 +81,7 @@ :resource-paths ["resources"] :aliases {"build" ["do" "clean" ["uberjar"]] "fig:dev" ["run" "-m" "figwheel.main" "-b" "dev" "-r"] - "fig:min" ["run" "-m" "figwheel.main" "-O" "advanced" "-bo" "dev"]} + "fig:min" ["run" "-m" "figwheel.main" "-O" "advanced" "-bo" "min"]} :profiles {:dev diff --git a/src/clj/auto_ap/routes/yodlee2.clj b/src/clj/auto_ap/routes/yodlee2.clj index c1a07561..cfca1513 100644 --- a/src/clj/auto_ap/routes/yodlee2.clj +++ b/src/clj/auto_ap/routes/yodlee2.clj @@ -32,12 +32,6 @@ :headers {"Content-Type" "application/edn"} :body (pr-str (yodlee/get-accounts)) })) - (GET "/provider-accounts" {:keys [query-params identity] :as request} - (assert-admin identity) - (log/info "working on provider accounts...") - {:status 200 - :headers {"Content-Type" "application/edn"} - :body (pr-str @yodlee/in-memory-cache) }) (POST "/reauthenticate/:id" {:keys [query-params identity] {:keys [id]} :route-params data :edn-params :as request}