forked from magomimmo/modern-cljs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
113 lines (88 loc) · 5.27 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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
(defproject modern-cljs "0.1.0-SNAPSHOT"
:description "A series of tutorials on ClojureScript"
:url "https://github.com/magomimmo/modern-cljs"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:pom-addition [:developers [:developer
[:id "magomimmo"]
[:name "Mimmo Cosenza"]
[:url "https://github.com/magomimmo"]
[:email "mimmo.cosenza@gmail.com"]
[:timezone "+2"]]]
:test-paths ["target/test/clj"]
:min-lein-version "2.2.0"
:source-paths ["src/clj" "src/cljs"]
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2069"]
[compojure "1.1.6"]
[hiccups "0.2.0"]
[domina "1.0.3-SNAPSHOT"]
[org.clojars.magomimmo/shoreleave-remote-ring "0.3.1"]
[org.clojars.magomimmo/shoreleave-remote "0.3.1"]
[com.cemerick/valip "0.3.2"]
[enlive "1.1.4"]]
:plugins [[lein-ring "0.8.8"]
[lein-cljsbuild "1.0.0"]]
:hooks [leiningen.cljsbuild]
:ring {:handler modern-cljs.core/app}
:cljsbuild {:crossovers [valip.core
valip.predicates
modern-cljs.login.validators
modern-cljs.shopping.validators]
:builds {:prod
{:source-paths ["src/cljs"]
:compiler {:output-to "resources/public/js/modern.js"
:optimizations :advanced
:pretty-print false}}}}
:profiles {:dev {:source-paths ["src/brepl"]
:test-paths ["target/test/cljs"]
:clean-targets ["out"]
:dependencies [[com.cemerick/piggieback "0.1.2"]]
:plugins [[com.keminglabs/cljx "0.3.0"]
[com.cemerick/clojurescript.test "0.2.1"]]
: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 {:test-commands {"phantomjs-whitespace"
["phantomjs" :runner "target/test/js/testable_dbg.js"]
"phantomjs-simple"
["phantomjs" :runner "target/test/js/testable_pre.js"]
"phantomjs-advanced"
["phantomjs" :runner "target/test/js/testable.js"]}
:builds
{:dev
{:source-paths ["src/brepl" "src/cljs"]
:compiler {:output-to "resources/public/js/modern_dbg.js"
:optimizations :whitespace
:pretty-print true}}
:pre-prod
{:source-paths ["src/brepl" "src/cljs"]
:compiler {:output-to "resources/public/js/modern_pre.js"
:optimizations :simple
:pretty-print false}}
:ws-unit-tests
{:source-paths ["src/brepl" "src/cljs" "target/test/cljs"]
:compiler {:output-to "target/test/js/testable_dbg.js"
:optimizations :whitespace
:pretty-print true}}
:simple-unit-tests
{ :source-paths ["src/brepl" "src/cljs" "target/test/cljs"]
:compiler {:output-to "target/test/js/testable_pre.js"
:optimizations :simple
:pretty-print false}}
:advanced-unit-tests
{:source-paths ["src/cljs" "target/test/cljs"]
:compiler {:output-to "target/test/js/testable.js"
:optimizations :advanced
:pretty-print false}}}}
:aliases {"clean-test!" ["do" "clean," "cljx" "once," "compile," "test"]
"clean-start!" ["do" "clean," "cljx" "once," "compile," "ring" "server-headless"]}
: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
(brepl/repl-env :port 9000)))]}})