Skip to content

Instantly share code, notes, and snippets.

/- Secret

Created Jun 13, 2015
Embed
What would you like to do?
(def cljs-deps '[[org.clojure/clojurescript "0.0-3308"]
;routing
[secretary "1.2.3"]
;We add a react dep
[org.omcljs/om "0.8.8"]
[sablono "0.3.4"]
;Transit provider for cljs
[com.cognitect/transit-cljs "0.8.215"]
;Local Storage backed atom for login data
[alandipert/storage-atom "1.2.4"]
[kioo "0.4.0"]
[cljsjs/markdown "0.6.0-beta1-0"]
[cljsjs/mustache "1.1.0-0"]])
(def both-deps '[;Concurrency handling
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
;Data Validation/Description
[prismatic/schema "0.4.3"]
[prismatic/plumbing "0.4.4"]])
(def clj-deps '[[org.clojure/clojure "1.7.0-RC1"]
[org.clojure/tools.logging "0.3.1"]
[ring "1.4.0-RC1"]
[ring/ring-defaults "0.1.3"]
[com.cemerick/piggieback "0.2.1"]
;routing
[compojure "1.3.4"]
;configuration
[environ "1.0.0"]
[clj-time "0.9.0"]
;Http kit is our underlying server
[http-kit "2.1.16"]
;Handle encoding/decoding resp
[ring-middleware-format "0.5.0"]
;database access
[yesql "0.4.2"]
;Connection Pooling
[clojure.jdbc/clojure.jdbc-c3p0 "0.3.1"]
;jdbc driver
[org.postgresql/postgresql "9.4-1201-jdbc41"]
;Crypto/login primitives
[buddy/buddy-core "0.5.0"]
;Password Hashers
[buddy/buddy-hashers "0.4.2"]
;JWS token backend/middleware
[buddy/buddy-auth "0.5.0"]
;Javamail interface
[com.draines/postal "1.11.3"]
[org.clojure/tools.nrepl "0.2.10"]
; Templating
[enlive "1.1.5"]])
(set-env!
:source-paths #{"src/clj" "src/cljs" "src/cljc"}
:resource-paths #{"resources/"}
:dependencies (into [] (concat '[[adzerk/boot-cljs "0.0-3269-2"]
[estsauver/boot-cljx "0.3.0-SNAPSHOT"]
[adzerk/boot-reload "0.2.6"]
[pandeiro/boot-http "0.6.3-SNAPSHOT"]]
cljs-deps
both-deps
clj-deps)))
(require '[adzerk.boot-cljs :refer :all])
(require '[pandeiro.boot-http :refer [serve]])
(require '[adzerk.boot-reload :refer :all])
(task-options!
pom {:project 'wingapp.app
:version "0.1.0-SNAPSHOT"}
aot {:namespace '#{wingapp.server}}
jar {:main 'wingapp.server}
repl {:init-ns 'wingapp.server}
cljs {:source-map true
:output-dir "out"
:compiler-options {:preamble ["react/react.min.js"]
:asset-path "/js/out"}}
serve {:handler 'wingapp.server/http-handler
:reload true}
sift {:move {#"out" "public/js/out" #"^main.js" "public/js/main.js"}})
(deftask build
[]
(comp (cljs)
(sift)))
(deftask dev
"Dev Process"
[]
(comp
(serve)
(watch)
(repl :server true)
(reload :on-jsload 'wingapp.core/on-js-reload)
(build)))
(deftask package
[]
(comp
(aot)
#_(build)
(pom)
(uber)
(jar)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment