From bb5689f3e6ed35d978833aa065c6be1e912e3c3d Mon Sep 17 00:00:00 2001 From: Levi Tan Ong Date: Mon, 10 Oct 2016 16:14:30 +0800 Subject: [PATCH] Updates :builds to be compatible with latest cljsbuild cljsbuild 1.1.4 requires :builds to be a sequential collection of maps with field :id --- resources/project.clj | 61 +++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/resources/project.clj b/resources/project.clj index f34a471..7f9a45a 100644 --- a/resources/project.clj +++ b/resources/project.clj @@ -16,33 +16,36 @@ :profiles {:dev {:dependencies [[figwheel-sidecar "0.5.0-6"] [com.cemerick/piggieback "0.2.1"]] :source-paths ["src" "env/dev"] - :cljsbuild {:builds {:ios {:source-paths ["src" "env/dev"] - :figwheel true - :compiler {:output-to "target/ios/not-used.js" - :main "env.ios.main" - :output-dir "target/ios" - :optimizations :none}} - :android {:source-paths ["src" "env/dev"] - :figwheel true - :compiler {:output-to "target/android/not-used.js" - :main "env.android.main" - :output-dir "target/android" - :optimizations :none}}}} + :cljsbuild {:builds [{:id :ios + :source-paths ["src" "env/dev"] + :figwheel true + :compiler {:output-to "target/ios/not-used.js" + :main "env.ios.main" + :output-dir "target/ios" + :optimizations :none}} + {:id :android + :source-paths ["src" "env/dev"] + :figwheel true + :compiler {:output-to "target/android/not-used.js" + :main "env.android.main" + :output-dir "target/android" + :optimizations :none}}]} :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}} - :prod {:cljsbuild {:builds {:ios {:source-paths ["src" "env/prod"] - :compiler {:output-to "index.ios.js" - :main "env.ios.main" - :output-dir "target/ios" - :static-fns true - :optimize-constants true - :optimizations :simple - :closure-defines {"goog.DEBUG" false}}} - :android {:source-paths ["src" "env/prod"] - :compiler {:output-to "index.android.js" - :main "env.android.main" - :output-dir "target/android" - :static-fns true - :optimize-constants true - :optimizations :simple - :closure-defines {"goog.DEBUG" false}}}}} - }}) + :prod {:cljsbuild {:builds [{:id :ios + :source-paths ["src" "env/prod"] + :compiler {:output-to "index.ios.js" + :main "env.ios.main" + :output-dir "target/ios" + :static-fns true + :optimize-constants true + :optimizations :simple + :closure-defines {"goog.DEBUG" false}}} + {:id :android + :source-paths ["src" "env/prod"] + :compiler {:output-to "index.android.js" + :main "env.android.main" + :output-dir "target/android" + :static-fns true + :optimize-constants true + :optimizations :simple + :closure-defines {"goog.DEBUG" false}}}]}}})