Updates :builds to be compatible with latest cljsbuild

cljsbuild 1.1.4 requires :builds to be a sequential collection of maps with field :id
This commit is contained in:
Levi Tan Ong 2016-10-10 16:14:30 +08:00 committed by GitHub
parent a693c8f1e3
commit bb5689f3e6
1 changed files with 32 additions and 29 deletions

View File

@ -16,33 +16,36 @@
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.0-6"] :profiles {:dev {:dependencies [[figwheel-sidecar "0.5.0-6"]
[com.cemerick/piggieback "0.2.1"]] [com.cemerick/piggieback "0.2.1"]]
:source-paths ["src" "env/dev"] :source-paths ["src" "env/dev"]
:cljsbuild {:builds {:ios {:source-paths ["src" "env/dev"] :cljsbuild {:builds [{:id :ios
:figwheel true :source-paths ["src" "env/dev"]
:compiler {:output-to "target/ios/not-used.js" :figwheel true
:main "env.ios.main" :compiler {:output-to "target/ios/not-used.js"
:output-dir "target/ios" :main "env.ios.main"
:optimizations :none}} :output-dir "target/ios"
:android {:source-paths ["src" "env/dev"] :optimizations :none}}
:figwheel true {:id :android
:compiler {:output-to "target/android/not-used.js" :source-paths ["src" "env/dev"]
:main "env.android.main" :figwheel true
:output-dir "target/android" :compiler {:output-to "target/android/not-used.js"
:optimizations :none}}}} :main "env.android.main"
:output-dir "target/android"
:optimizations :none}}]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}} :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:prod {:cljsbuild {:builds {:ios {:source-paths ["src" "env/prod"] :prod {:cljsbuild {:builds [{:id :ios
:compiler {:output-to "index.ios.js" :source-paths ["src" "env/prod"]
:main "env.ios.main" :compiler {:output-to "index.ios.js"
:output-dir "target/ios" :main "env.ios.main"
:static-fns true :output-dir "target/ios"
:optimize-constants true :static-fns true
:optimizations :simple :optimize-constants true
:closure-defines {"goog.DEBUG" false}}} :optimizations :simple
:android {:source-paths ["src" "env/prod"] :closure-defines {"goog.DEBUG" false}}}
:compiler {:output-to "index.android.js" {:id :android
:main "env.android.main" :source-paths ["src" "env/prod"]
:output-dir "target/android" :compiler {:output-to "index.android.js"
:static-fns true :main "env.android.main"
:optimize-constants true :output-dir "target/android"
:optimizations :simple :static-fns true
:closure-defines {"goog.DEBUG" false}}}}} :optimize-constants true
}}) :optimizations :simple
:closure-defines {"goog.DEBUG" false}}}]}}})