-
Notifications
You must be signed in to change notification settings - Fork 200
/
project.clj
91 lines (83 loc) · 4.75 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
(defproject frontend "0.1.0-SNAPSHOT"
:description "CircleCI's frontend app"
:url "https://circleci.com"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[inflections "0.8.2"]
[org.clojars.dwwoelfel/stefon "0.5.0-3198d1b33637d6bd79c7415b01cff843891ebfd4"]
[compojure "1.1.8"]
[ring/ring "1.2.2"]
[http-kit "2.1.18"]
[fs "0.11.1"]
[ankha "0.1.2"]
[org.clojure/clojurescript "0.0-2280"]
[org.clojure/google-closure-library "0.0-20140226-71326067"]
[com.google.javascript/closure-compiler "v20140625"]
[org.clojure/core.async "0.1.303.0-886421-alpha"]
[cljs-ajax "0.2.6"]
[om "0.6.4"]
[com.facebook/react "0.10.0"] ;; include for externs
[prismatic/dommy "0.1.2"]
[sablono "0.2.16"]
[secretary "1.2.0"]
[com.andrewmcveigh/cljs-time "0.1.5"]
[weasel "0.3.0"] ;; repl
;; Frontend tests
[com.cemerick/clojurescript.test "0.3.0"]]
:plugins [[lein-cljsbuild "1.0.4-SNAPSHOT"]
[com.cemerick/austin "0.1.4"]]
:exclusions [[org.clojure/clojure]
[org.clojure/clojurescript]]
:main frontend.core
:jvm-opts ["-Djava.net.preferIPv4Stack=true"
"-server"
"-XX:MaxPermSize=256m"
"-XX:+UseConcMarkSweepGC"
"-Xss1m"
"-Xmx1024m"
"-XX:+CMSClassUnloadingEnabled"
"-Djava.library.path=target/native/macosx/x86_64:target/native/linux/x86_64:target/native/linux/x86"
"-Djna.library.path=target/native/macosx/x86_64:target/native/linux/x86_64:target/native/linux/x86"
"-Dfile.encoding=UTF-8"]
:cljsbuild {:builds [{:id "dev"
:source-paths ["src-cljs"]
:compiler {:output-to "resources/public/cljs/out/frontend-dev.js"
:output-dir "resources/public/cljs/out"
:optimizations :none
:source-map "resources/public/cljs/out/sourcemap-dev.js"}}
{:id "whitespace"
:source-paths ["src-cljs"]
:compiler {:output-to "resources/public/cljs/whitespace/frontend.js"
:output-dir "resources/public/cljs/whitespace"
:optimizations :whitespace
;; :source-map "resources/public/cljs/whitespace/sourcemap.js"
}}
{:id "test"
:source-paths ["src-cljs" "test-cljs"]
:compiler {:pretty-print true
:output-to "resources/public/cljs/test/frontend-dev.js"
:output-dir "resources/public/cljs/test"
:optimizations :advanced
:externs ["test-js/externs.js"
"src-cljs/js/react-externs.js"
"src-cljs/js/pusher-externs.js"
"src-cljs/js/ci-externs.js"
"src-cljs/js/analytics-externs.js"
"src-cljs/js/intercom-jquery-externs.js"]
:source-map "resources/public/cljs/test/sourcemap-dev.js"}}
{:id "production"
:source-paths ["src-cljs"]
:compiler {:pretty-print false
:output-to "resources/public/cljs/production/frontend.js"
:output-dir "resources/public/cljs/production"
:optimizations :advanced
:externs ["react/externs/react.js"
"src-cljs/js/pusher-externs.js"
"src-cljs/js/ci-externs.js"
"src-cljs/js/analytics-externs.js"
"src-cljs/js/intercom-jquery-externs.js"]
;; :source-map "resources/public/cljs/production/sourcemap-frontend.js"
}}]
:test-commands {"frontend-unit-tests"
["node_modules/karma/bin/karma" "start" "karma.conf.js" "--single-run"]}})