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,20 +16,23 @@
: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
:source-paths ["src" "env/dev"]
:figwheel true :figwheel true
:compiler {:output-to "target/ios/not-used.js" :compiler {:output-to "target/ios/not-used.js"
:main "env.ios.main" :main "env.ios.main"
:output-dir "target/ios" :output-dir "target/ios"
:optimizations :none}} :optimizations :none}}
:android {:source-paths ["src" "env/dev"] {:id :android
:source-paths ["src" "env/dev"]
:figwheel true :figwheel true
:compiler {:output-to "target/android/not-used.js" :compiler {:output-to "target/android/not-used.js"
:main "env.android.main" :main "env.android.main"
:output-dir "target/android" :output-dir "target/android"
:optimizations :none}}}} :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
:source-paths ["src" "env/prod"]
:compiler {:output-to "index.ios.js" :compiler {:output-to "index.ios.js"
:main "env.ios.main" :main "env.ios.main"
:output-dir "target/ios" :output-dir "target/ios"
@ -37,12 +40,12 @@
:optimize-constants true :optimize-constants true
:optimizations :simple :optimizations :simple
:closure-defines {"goog.DEBUG" false}}} :closure-defines {"goog.DEBUG" false}}}
:android {:source-paths ["src" "env/prod"] {:id :android
:source-paths ["src" "env/prod"]
:compiler {:output-to "index.android.js" :compiler {:output-to "index.android.js"
:main "env.android.main" :main "env.android.main"
:output-dir "target/android" :output-dir "target/android"
:static-fns true :static-fns true
:optimize-constants true :optimize-constants true
:optimizations :simple :optimizations :simple
:closure-defines {"goog.DEBUG" false}}}}} :closure-defines {"goog.DEBUG" false}}}]}}})
}})