-
-
Save jobez/5010e8ec166dcde1232f 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! | |
; Test path can be included here as source-files are not included in JAR | |
; Just be careful to not AOT them | |
:source-paths #{"src/cljs" "src/js" "src/less" "src/scss" "test/cljs"} | |
:resource-paths #{"src/clj" "src/cljc" "src/js" "jsoutput"} | |
:dependencies '[[org.clojure/clojure "1.7.0" :scope "provided"] | |
[org.clojure/clojurescript "1.7.228"] | |
[boot/core "2.5.2" :scope "test"] | |
[adzerk/boot-cljs "1.7.228-1" :scope "test"] | |
[adzerk/boot-cljs-repl "0.3.0" :scope "test"] | |
[crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :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"] | |
[adzerk/boot-reload "0.4.5" :scope "test"] | |
[adzerk/boot-test "1.0.7" :scope "test"] | |
[deraen/boot-less "0.5.0" :scope "test"] | |
[cheshire "5.5.0"] | |
;; For boot-less | |
[org.slf4j/slf4j-nop "1.7.13" :scope "test"] | |
[deraen/boot-sass "0.2.0" :scope "test"] | |
[deraen/boot-ctn "0.1.0" :scope "test"] | |
;; Backend | |
[http-kit "2.1.19"] | |
[org.clojure/tools.namespace "0.2.11"] | |
[reloaded.repl "0.2.1"] | |
[com.stuartsierra/component "0.3.1"] | |
[metosin/ring-http-response "0.6.5"] | |
[prismatic/om-tools "0.4.0"] | |
[prismatic/plumbing "0.5.2"] | |
[prismatic/schema "1.0.4"] | |
[ring "1.4.0"] | |
[compojure "1.4.0"] | |
[hiccup "1.0.5"] | |
;; Frontend | |
[thheller/shadow-build "1.0.201"] | |
;;[org.omcljs/om "0.8.8"] | |
;;[sablono "0.3.6"] | |
; LESS | |
[org.webjars/bootstrap "3.3.6"] | |
; SASS | |
[org.webjars.bower/bootstrap "4.0.0-alpha" :exclusions [org.webjars.bower/jquery]]]) | |
(require | |
'[adzerk.boot-cljs :refer [cljs]] | |
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl repl-env]] | |
'[adzerk.boot-reload :refer [reload]] | |
'[adzerk.boot-test :refer [test]] | |
'[deraen.boot-less :refer [less]] | |
'[deraen.boot-sass :refer [sass]] | |
'[deraen.boot-ctn :refer [init-ctn!]] | |
'[crisptrutski.boot-cljs-test :refer [test-cljs prep-cljs-tests run-cljs-tests]] | |
'[backend.boot :refer [start-app]] | |
'[boot.core :as core] | |
'[tasks.closurejs :refer [build-js]] | |
'[tasks.reloadjs :refer [reload-js]] | |
'[reloaded.repl :refer [go reset start stop system]]) | |
; Watch boot temp dirs | |
(init-ctn!) | |
(task-options! | |
pom {:project 'credit-score-dashboard-assets | |
:version "0.1.0-SNAPSHOT" | |
:description "client" | |
:license {"The MIT License (MIT)" "http://opensource.org/licenses/mit-license.php"}} | |
aot {:namespace #{'backend.main}} | |
jar {:main 'backend.main} | |
cljs {:source-map true} | |
test-cljs {:js-env :phantom} | |
less {:source-map true}) | |
(deftask build [] | |
(comp | |
(aot) | |
(pom) | |
(less) | |
(uber) | |
(jar) | |
(target))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment