Skip to content

Instantly share code, notes, and snippets.

@kana-sama
Last active May 26, 2017 23:42
Show Gist options
  • Save kana-sama/dad3141eb1369765aa69b2656093465f to your computer and use it in GitHub Desktop.
Save kana-sama/dad3141eb1369765aa69b2656093465f to your computer and use it in GitHub Desktop.
(set-env!
:source-paths #{"cljs"}
:dependencies '[[adzerk/boot-cljs "1.7.228-1"]
[adzerk/boot-reload "0.4.12"]
;; project dependencies
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.229"]
[reagent "0.6.0"
:exclusions [cljsjs/react
cljsjs/react-dom
cljsjs/react-dom-server]]
[re-frame "0.9.1"]
[cljs-ajax "0.5.8"]
[day8.re-frame/async-flow-fx "0.0.6"]
[day8.re-frame/http-fx "0.1.3"]
[prismatic/plumbing "0.5.3"]
[secretary "1.2.3"]
[venantius/accountant "0.1.7"]])
(require '[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]])
(def asset-path "/cljs")
(task-options!
notify {:title "Watch"
:audible true
:visual true}
target {:dir #{"public/cljs"}}
cljs {:compiler-options {:asset-path (str asset-path "/main.out")}}
reload {:on-jsload 'app.core/run
:cljs-asset-path asset-path})
(deftask build []
(comp
(cljs :optimizations :advanced)
(target)))
(deftask dev []
(comp
(watch)
(notify)
(reload)
(cljs)
(target)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment