                           [org.apache.logging.log4j/log4j-slf4j-impl "2.5" :scope "runtime"]
                           [mount "0.1.10"]
                           [robert/hooke "1.3.0"]
-                          [cprop "0.1.7"]]))
+                          [cprop "0.1.7"]
+                          ;; dev only
+                          [adzerk/boot-test "1.1.1" :scope "test"]
+                          [adzerk/env "0.3.0" :scope "test"]]))
 <% if any frontend %>
-(def frontend-dev-deps '[[adzerk/boot-cljs "1.7.228-1" :scope "test"]
-                         [adzerk/boot-cljs-repl "0.3.0" :scope "test"]
-                         [adzerk/boot-reload "0.4.4" :scope "test"]
-                         [deraen/boot-sass "0.2.1" :scope "test"]
-                         [crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :scope "test"]
-                         [adzerk/boot-cljs-repl "0.3.0" :scope "test"]
-                         [com.cemerick/piggieback "0.2.1" :scope "test"]
-                         [weasel "0.7.0" :scope "test"]
-                         [org.clojure/tools.nrepl "0.2.12" :scope "test"]
-                         [org.slf4j/slf4j-nop "1.7.21"]])
-
 ;; All the deps are "test" because they are only need for compiling to
 ;; JavaScript, not "real" project dependencies.
 (def frontend-deps (into common-deps
                          '[[org.clojure/clojurescript "1.8.51" :scope "test"]
                            [org.clojure/core.async "0.2.374" :scope "test"]
-                           [adzerk/cljs-console "0.1.1" :scope "test"]]))
+                           [adzerk/cljs-console "0.1.1" :scope "test"]
+                           ;; dev only
+                           [adzerk/boot-cljs "1.7.228-1" :scope "test"]
+                           [adzerk/boot-cljs-repl "0.3.0" :scope "test"]
+                           [adzerk/boot-reload "0.4.4" :scope "test"]
+                           [deraen/boot-sass "0.2.1" :scope "test"]
+                           [crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :scope "test"]
+                           [adzerk/boot-cljs-repl "0.3.0" :scope "test"]
+                           [com.cemerick/piggieback "0.2.1" :scope "test"]
+                           [weasel "0.7.0" :scope "test"]
+                           [org.clojure/tools.nrepl "0.2.12" :scope "test"]
+                           [org.slf4j/slf4j-nop "1.7.21" :scope "test"]]))
 <% endif %>
 (set-env! :source-paths #{"dev"}
           :dependencies cmd-line-deps)

  [selection]
  (merge backend-options
         {:test {:namespaces #{'<<project-ns>>.system-test}}
          :env {:dependencies backend-dev-dependencies
                :middleware @@(resolve 'boot.repl/*default-middleware*)
                :source-paths #{"src/backend" "test/backend" "env/dev/src"}
                :resource-paths #{"env/dev/resources"}}}))

  (let [type (or type :prod)
        flavor (or flavor (keyword (get (env/env) "BOOT_BUILD_FLAVOR")))
        options (boot/options [flavor type])]
    (util/info "Will build the [%1s %2s] profile...\n" flavor type)
    (case flavor
      <% if any backend %>:backend (boot/build-backend options)<% endif %><% if any frontend %>
