Created
February 17, 2016 05:40
-
-
Save be9/5a41d66d845385ba59b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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! | |
:source-paths #{"src/cljs" "src/clj"} | |
:resource-paths #{"html" "sql"} | |
:dependencies '[[org.clojure/clojure "1.8.0"] | |
[mount "0.1.9"] | |
[funcool/suricatta "0.8.1"] | |
[environ "1.0.2"] | |
[boot-environ "1.0.2" :scope "test"] | |
[metosin/compojure-api "1.0.0-RC2"] | |
[ragtime "0.5.2"] | |
[bouncer "1.0.0"] | |
[buddy "0.10.0"] | |
[clj-time "0.11.0"] | |
[org.clojure/java.jdbc "0.4.2"] | |
[org.postgresql/postgresql "9.4.1207.jre7"] | |
[org.clojure/clojurescript "1.7.228"] | |
[adzerk/boot-cljs "1.7.228-1" :scope "test"] | |
[pandeiro/boot-http "0.7.2" :scope "test"] | |
[adzerk/boot-reload "0.4.5" :scope "test"] | |
[adzerk/boot-cljs-repl "0.3.0" :scope "test"] | |
[ring/ring-jetty-adapter "1.4.0"] | |
[midje "1.8.3" :scope "test"] | |
[ring/ring-mock "0.3.0" :scope "test"] | |
[com.cemerick/piggieback "0.2.1" :scope "test"] ;; needed by bREPL | |
[weasel "0.7.0" :scope "test"] ;; needed by bREPL | |
[org.clojure/tools.nrepl "0.2.12" :scope "test"] ;; needed by bREPL | |
[deraen/boot-sass "0.2.0" :scope "test"] | |
[org.webjars/bootstrap "4.0.0-alpha.2"] | |
[cljs-ajax "0.5.3"] | |
#_[org.slf4j/slf4j-nop "1.7.15" :scope "test"] | |
[re-frame "0.7.0-alpha-2"] | |
[bidi "1.25.1"] | |
[kibu/pushy "0.3.6"] | |
[org.clojure/tools.namespace "0.2.11" :scope "test"] | |
[com.taoensso/timbre "4.2.1"] | |
[com.fzakaria/slf4j-timbre "0.3.0"] | |
[zilti/boot-midje "0.2.1-SNAPSHOT" :scope "test"] | |
[ring-logger-timbre "0.7.5"] | |
[cljsjs/moment "2.10.6-2"] | |
[cljsjs/pikaday "1.4.0-1"]]) | |
(require '[adzerk.boot-cljs :refer [cljs]] | |
'[pandeiro.boot-http :refer [serve]] | |
'[adzerk.boot-reload :refer [reload]] | |
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]] | |
'[clojure.java.io :as io] | |
'[deraen.boot-sass :refer [sass]] | |
'[environ.boot :refer [environ]] | |
'[be9.boot-ragtime :refer [ragtime]] | |
'[zilti.boot-midje :as boot-midje]) | |
(def dev-database-url "postgres://localhost/tms_development") | |
(def test-database-url "postgres://localhost/tms_test") | |
(task-options! | |
pom {:project 'tms | |
:version "0.1.0"} | |
aot {:namespace '#{tms.handler}} | |
jar {:main 'tms.handler | |
:manifest {"Description" "TMS" | |
"Url" "http://git.toptal.com/tomislav.bacinger/project-oleg-dashevskii"}} | |
ragtime {:database dev-database-url :directory "sql/migrations" :driver-class "org.postgresql.Driver"}) | |
(deftask dev [] | |
(set-env! :source-paths #{"src/cljs" "src/clj" "test/clj"}) | |
(comp (environ :env {:database-url dev-database-url | |
:test-database-url test-database-url | |
:token-secret "KdfZCzDej3na75qykjSG6j5T69i70hIp"}) | |
(serve :dir "target" :handler 'tms.handler/app :reload true :init 'tms.handler/start) | |
(watch) | |
(sass) | |
(reload :on-jsload 'tms.core/main) | |
(cljs-repl) | |
(cljs) ; :source-map true :optimizations :none) | |
(target :dir #{"target"}))) | |
(deftask ci [] | |
(set-env! :source-paths #{"src/clj"}) | |
(comp (environ :env {:database-url dev-database-url | |
:test-database-url test-database-url | |
:token-secret "KdfZCzDej3na75qykjSG6j5T69i70hIp"}) | |
(boot-midje/midje :test-paths #{"test/clj"}))) | |
(deftask migrate-test [] | |
(ragtime :migrate true :database test-database-url)) | |
(deftask build [] | |
(comp (aot) | |
(sass) | |
(cljs :optimizations :advanced) | |
(pom) | |
(uber) | |
(jar) | |
(target :dir #{"target-build"}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment