forked from broadinstitute/firecloud-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
39 lines (37 loc) · 1.94 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(def root-ns "org.broadinstitute")
(def build-dir-relative "target")
(def server-name (or (System/getenv "SERVER_NAME")
(throw (Exception. "SERVER_NAME is not defined"))))
(defproject org.broadinstitute/firecloud-ui "0.0.1"
:dependencies
[
[binaryage/devtools "0.4.1"]
[dmohs/react "0.2.10"]
[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.48"]
[inflections "0.9.14"]
[cljsjs/moment "2.9.0-3"]
]
:plugins [[lein-cljsbuild "1.0.6"] [lein-figwheel "0.3.7"]]
:hooks [leiningen.cljsbuild]
:profiles {:dev {:cljsbuild
{:builds {:client {:compiler
{:optimizations :none
:source-map true
:source-map-timestamp true}
:figwheel
{:on-jsload ~(str root-ns
".firecloud-ui.main/dev-reload")
:websocket-url ~(str "ws://" server-name
":3449/figwheel-ws")}}}}}
:minimized {:cljsbuild
{:builds {:client {:compiler
{;; As of 10/29/15, advanced optimization triggers
;; infinite recursion, which I was not able to figure
;; out.
:optimizations :simple
:pretty-print false
:closure-defines {"goog.DEBUG" false}}}}}}}
:cljsbuild {:builds {:client {:source-paths ["src/cljs"]
:compiler {:output-dir ~(str build-dir-relative "/build")
:output-to ~(str build-dir-relative "/compiled.js")}}}})