Created
September 9, 2016 20:14
-
-
Save maacl/966acf18c1bcccf47615277494508fb0 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! | |
:resource-paths #{"src" "html" "src/clj" "src/cljc"} | |
:dependencies '[[adzerk/boot-cljs "1.7.228-1" :scope "test"] | |
[adzerk/boot-cljs-repl "0.3.0" :scope "test"] | |
[adzerk/boot-reload "0.4.5" :scope "test"] | |
[pandeiro/boot-http "0.7.1-SNAPSHOT" :scope "test"] | |
[crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :scope "test"] | |
[org.clojure/clojure "1.7.0"] | |
[org.clojure/clojurescript "1.7.228"] | |
[hiccups "0.3.0"] | |
[bouncer "1.0.0"] | |
[re-frame "0.8.0"] | |
[secretary "1.2.1"] | |
[sablono "0.7.2"] | |
[com.cemerick/piggieback "0.2.1" :scope "test"] | |
[weasel "0.7.0" :scope "test"] | |
[org.clojure/tools.nrepl "0.2.12" :scope "test"]] | |
:source-paths #{"src"}) | |
(require | |
'[adzerk.boot-cljs :refer [cljs]] | |
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]] | |
'[adzerk.boot-reload :refer [reload]] | |
'[crisptrutski.boot-cljs-test :refer [exit! test-cljs]] | |
'[pandeiro.boot-http :refer [serve]]) | |
(deftask testing [] | |
(merge-env! :resource-paths #{"test"}) | |
identity) | |
(deftask auto-test [] | |
(comp (testing) | |
(watch) | |
(speak) | |
(test-cljs))) | |
(deftask dev [] | |
(comp (serve :dir "target/") | |
(watch) | |
(speak) | |
(reload :on-jsload 'app.core/main) | |
(cljs-repl) | |
(cljs :source-map true | |
:optimizations :none | |
:compiler-options {:foreign-libs | |
[{:file "src/js/prosemirror.js" | |
:provides ["pm"]} | |
{:file "src/js/chrono.js" | |
:provides ["chrono"]}] | |
:externs ["src/js/externs.js"]}) | |
(target :dir #{"target/"}))) | |
(deftask test [] | |
(comp (testing) | |
(test-cljs) | |
(exit!))) | |
(deftask build [] | |
(cljs :optimizations :advanced)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment