forked from magomimmo/modern-cljs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
60 lines (48 loc) · 2.1 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
(defproject modern-cljs "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:min-lein-version "2.0.0"
;; clojure source code path
:source-paths ["src/clj"]
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.5"]
[hiccups "0.2.0"]
[com.cemerick/shoreleave-remote-ring "0.0.2"]
[shoreleave/shoreleave-remote "0.2.2"]
[com.cemerick/valip "0.3.2"]]
:plugins [[lein-cljsbuild "0.2.10"]
[lein-ring "0.8.2"]]
;; enable cljsbuild tasks support
;; :hooks [leiningen.cljsbuild]
;; ring tasks configuration
:ring {:handler modern-cljs.remotes/app}
;; cljsbuild tasks configuration
:cljsbuild {:crossovers [valip.core valip.predicates modern-cljs.login.validators]
:builds
{:dev
{;; clojurescript source code path
:source-path "src/cljs"
;; Google Closure Compiler options
:compiler {;; the name of emitted JS script file
:output-to "resources/public/js/modern_dbg.js"
;; minimum optimization
:optimizations :whitespace
;; prettyfying emitted JS
:pretty-print true}}
:pre-prod
{;; same path as above
:source-path "src/cljs"
:compiler {;; different JS output name
:output-to "resources/public/js/modern_pre.js"
;; simple optimization
:optimizations :simple}}
:prod
{;; same path as above
:source-path "src/cljs"
:compiler {;; different JS output name
:output-to "resources/public/js/modern.js"
;; advanced optimization
:optimizations :advanced}}
}})