Created
November 22, 2016 00:43
-
-
Save anonymous/c26bfe1dc7e37d20c246d6f975f993f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-env! :source-paths #{"src"} | |
:dependencies '[[adzerk/boot-cljs "1.7.228-1"] | |
[adzerk/boot-reload "0.4.12"] | |
[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.229"] | |
[reagent "0.6.0"] | |
[re-frame "0.8.0"] | |
[cljs-ajax "0.5.8"] | |
[day8.re-frame/async-flow-fx "0.0.6"] | |
[day8.re-frame/http-fx "0.1.2"] | |
[prismatic/plumbing "0.5.3"] | |
[secretary "1.2.3"] | |
[venantius/accountant "0.1.7"]]) | |
(def asset-path "/assets/target/") | |
(task-options! notify {:audible true | |
:visual true} | |
cljs {:compiler-options {:asset-path asset-path}}) | |
(require '[adzerk.boot-cljs :refer [cljs]] | |
'[adzerk.boot-reload :refer [reload]]) | |
(defn cljs* [ | |
(deftask build [] | |
(comp | |
(notify :title "Prod build") | |
(cljs :optimizations :advanced) | |
(target))) | |
(deftask dev [] | |
(comp | |
(watch) | |
(notify :title "Dev build" | |
(reload :on-jsload 'app.core/run | |
:cljs-asset-path "/assets/target/") | |
(cljs) | |
(target))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment