forked from magomimmo/modern-cljs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profiles.clj
65 lines (50 loc) · 2.86 KB
/
profiles.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{:dev {:source-paths ["src/clj"]
:test-paths ["target/test/clj"]
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-1847"]
[com.cemerick/clojurescript.test "0.0.4"]
[com.cemerick/piggieback "0.0.5"]]
:plugins [[lein-cljsbuild "0.3.2"]
[com.keminglabs/cljx "0.3.0"]]
:cljx {:builds [{:source-paths ["test/cljx"]
:output-path "target/test/clj"
:rules :clj}
{:source-paths ["test/cljx"]
:output-path "target/test/cljs"
:rules :cljs}]}
:cljsbuild {:crossovers [valip.core
valip.predicates
modern-cljs.login.validators
modern-cljs.shopping.validators]
:test-commands {"whitespace"
["runners/phantomjs.js"
"resources/public/js/modern_dbg.js"]
"simple"
["runners/phantomjs.js"
"resources/public/js/modern_pre.js"]
"advanced"
["runners/phantomjs.js"
"resources/public/js/modern.js"]}
:builds
{:dev
{:source-paths ["src/brepl" "src/cljs" "target/test/cljs"]
:compiler {:output-to "resources/public/js/modern_dbg.js"
:optimizations :whitespace
:pretty-print true}}
:pre-prod
{:source-paths ["src/brepl" "src/cljs" "target/test/cljs"]
:compiler {:output-to "resources/public/js/modern_pre.js"
:optimizations :simple
:pretty-print false}}
:prod
{:source-paths ["src/cljs" "target/test/cljs"]
:compiler {:output-to "resources/public/js/modern.js"
:optimizations :advanced
:pretty-print false}}}}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:injections [(require '[cljs.repl.browser :as brepl]
'[cemerick.piggieback :as pb])
(defn browser-repl []
(pb/cljs-repl :repl-env
(doto (brepl/repl-env :port 9000)
cljs.repl/-setup)))]}}