Skip to content

Instantly share code, notes, and snippets.

@bonega
Created Nov 3, 2015
Embed
What would you like to do?
(set-env!
:source-paths #{"src/clj" "src/cljs"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.145"]
[adzerk/boot-cljs "1.7.48-6" :scope "test"]
[adzerk/boot-reload "0.4.1" :scope "test"]
[environ "1.0.0"]
[danielsz/boot-environ "0.0.4"]
[org.danielsz/system "0.1.9"]
[org.clojure/tools.nrepl "0.2.10"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[com.taoensso/sente "1.6.0"] ; <--- Sente
[http-kit "2.1.19"]
[ring "1.4.0"]
[ring/ring-defaults "0.1.5"] ; Includes `ring-anti-forgery`, etc.
[compojure "1.4.0"] ; Or routing lib of your choice
[hiccup "1.0.5"] ; Optional, just for HTML
[com.cognitect/transit-clj "0.8.285"]
[com.cognitect/transit-cljs "0.8.225"]
[re-frame "0.5.0-alpha1"]
[reagent "0.5.1" :exclusions [cljsjs/react]]
[cljsjs/react-with-addons "0.13.3-0"]
[cerberus "0.1.0-SNAPSHOT"]])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[reloaded.repl :refer [init start stop go reset]]
'[inspectoris.systems :refer [dev-system prod-system]]
'[danielsz.boot-environ :refer [environ]]
'[system.boot :refer [system run]])
(deftask dev
"Run a restartable system in the Repl"
[]
(comp
(environ :env {:http-port 3019})
(watch)
(system :sys #'dev-system :auto-start true :hot-reload true :files ["core.clj"])
(reload)
(cljs :source-map true)
(repl :server true)))
(deftask prod
"Run a restartable system in the Repl"
[]
(comp
(environ :env {:http-port 3019})
(cljs :optimizations :advanced :pretty-print false :output-to "target/public/main.js")
(run :main-namespace "inspectoris.core" :arguments [#'prod-system])
(wait)))
(deftask uberjar
"Builds an uberjar of this project that can be run with java -jar"
[]
(comp
(aot :namespace '#{inspectoris.core})
(pom :project 'inspectoris
:version "1.0.0")
(cljs :optimizations :advanced :pretty-print false)
(uber)
(jar :main 'inspectoris.core)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment