-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathproject.clj
More file actions
200 lines (157 loc) · 8.92 KB
/
project.clj
File metadata and controls
200 lines (157 loc) · 8.92 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
(defproject pc "0.1.0-SNAPSHOT"
:description "Precursor"
:url "https://precursorapp.com"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[inflections "0.12.2"]
[defpage "0.1.4" :exclusions [ring
clout
compojure]]
[compojure "1.5.0"]
[cheshire "5.6.1"]
[clj-time "0.12.0"]
[org.clojure/tools.nrepl "0.2.12"]
[javax.servlet/servlet-api "2.5"]
[slingshot "0.12.2"]
[hiccup "1.0.5"]
;; pdfs
[clj-pdf "2.1.6" :exclusions [xml-apis]]
[org.clojure/tools.logging "0.3.1"]
[log4j "1.2.17"]
[log4j/apache-log4j-extras "1.1"]
[org.slf4j/slf4j-api "1.7.10"]
[org.slf4j/slf4j-log4j12 "1.7.10" :exclusions [log4j]]
[clj-statsd "0.3.11"]
[cider/cider-nrepl "0.12.0"]
[clj-http "2.2.0"]
;; TODO: upgrade
[com.datomic/datomic-pro "0.9.5130" :exclusions [org.slf4j/slf4j-nop
org.slf4j/slf4j-api
com.amazonaws/aws-java-sdk
com.google.guava/guava]]
[clojurewerkz/spyglass "1.2.0"]
[amazonica "0.3.58" :exclusions [com.google.guava/guava]]
[com.draines/postal "1.11.3" :exclusions [commons-codec]]
[ring/ring "1.3.2" :exclusions [hiccup
org.clojure/java.classpath]]
;; uses a url-safe token
[dwwoelfel/ring-anti-forgery "1.0.0-cbd219138abf4e9916a51caa7629c357b5d164af" :exclusions [hiccup]]
;; adds support for on-complete callback
[precursor/sente "1.4.1-a28061fff118ea3313f99ae6afb89f064c35c9b2"]
[clj-stacktrace "0.2.8"]
[com.cognitect/transit-clj "0.8.285"]
[org.immutant/web "2.1.4"
:exclusions [org.jboss.logging/jboss-logging
org.slf4j/slf4j-nop
org.slf4j/slf4j-api
org.slf4j/slf4j-simple
org.slf4j/slf4j-log4j12
ch.qos.logback/logback-classic]]
[org.clojure/tools.reader "1.0.0-beta1"]
;;[com.google.guava/guava "18.0"]
[schejulure "1.0.1"]
[prismatic/schema "1.1.1"]
[org.clojars.pallix/batik "1.7.0"]
[com.cemerick/pomegranate "0.3.1" :exclusions [org.codehaus.plexus/plexus-utils
org.jsoup/jsoup]]
[com.novemberain/pantomime "2.8.0"]
[crypto-equality "1.0.0"]
[mvxcvi/clj-pgp "0.8.3" :exclusions [riddley]]
[me.raynes/fs "1.4.6" :exclusions [org.apache.commons/commons-compress]]
[datascript "1.6.5"]
[ankha "0.1.5.1-479897"]
[org.clojure/clojurescript "1.9.36"]
[org.clojure/core.async "0.2.374"]
[cljs-http "0.1.41" :exclusions [noencore]]
[com.cognitect/transit-cljs "0.8.237"]
;; Use yaks/om for the pattern tag (it's in React,
;; but not Om yet)
;;[om "0.6.4"]
[precursor/react "0.12.2-7-5-new-tags"]
[precursor/om-i "0.1.8"]
[sablono "0.3.4" :exclusions [cljsjs/react]]
[secretary "1.2.3"]
[com.andrewmcveigh/cljs-time "0.4.0"]
[com.cemerick/url "0.1.1"]
[hiccups "0.3.0"]
[dwwoelfel/weasel "0.6.1-09967ffe4a4a849a3d3988ffd241ea0770ab16c9"] ;; repl
[com.cemerick/piggieback "0.2.1"]
[figwheel "0.5.3-2"]
;; Frontend tests
[com.cemerick/clojurescript.test "0.3.3"]
;; dependencies of dependencies (make lein pedantic happy)
[commons-logging "1.2"]
;; backport to make upgrade from 1.8 -> 17 happy
[javax.xml.bind/jaxb-api "2.3.1"]
]
:repositories ^:replace [["prcrsr-s3-releases" {:url "s3p://prcrsr-jars/releases"
:sign-releases false ;; TODO put a gpg key on CI
:username [:gpg
:env/prcrsr_jars_username
"AKIAIQXSSVZAOLOC5KZA"]
:passphrase [:gpg
:env/prcrsr_jars_password]
:snapshots false}]
["prcrsr-s3-snapshots" {:url "s3p://prcrsr-jars/snapshots"
:sign-releases false ;; TODO put a gpg key on CI
:username [:gpg
:env/prcrsr_jars_username]
:passphrase [:gpg
:env/prcrsr_jars_password
"VgIfEWLuHOIMtSvOKm5q00t/XjGgsok8AvNIcNhq"]
:snapshots true}]
["central" {:url "https://repo1.maven.org/maven2/" :snapshots false}]
["clojars" {:url "https://clojars.org/repo/"}]]
:figwheel {:http-server-root "public"
:server-port 3448
:css-dirs ["resources/public/css"]}
:plugins [[lein-cljsbuild "1.1.3"]
[lein-figwheel "0.5.3-2" :exclusions [org.codehaus.plexus/plexus-utils
org.clojure/clojure
commons-codec]]
[circle/lein-deploy-deps "0.1.3"]
[circle/s3-wagon-private "1.2.2" :exclusions [commons-codec
org.apache.httpcomponents/httpclient]]]
:exclusions [[org.clojure/clojure]
[org.clojure/clojurescript]
[org.slf4j/log4j-over-slf4j]
[org.clojure/tools.nrepl]
[org.clojure/tools.reader]
[commons-logging]]
;; prevent leiningen from loading its version of nrepl (!)
:profiles {:dev {:dependencies [[org.clojure/tools.nrepl "0.2.10"
:exclusions [org.clojure/clojure]]]}}
:pedantic? :warn
:main ^:skip-aot pc.init
:jar-name "pc.jar"
:uberjar-name "pc-standalone.jar"
:jvm-opts ["-Djava.net.preferIPv4Stack=true"
"-server"
"-Xss1m"
"-Xmx1024m"
"-Dfile.encoding=UTF-8"]
:repl-options {:init-ns pc.repl}
:clean-targets ^{:protect false} [:target-path "resources/public/cljs/"]
:cljsbuild {:builds [{:id "dev"
:source-paths ["src-cljs"
"dev-cljs"
"yaks/om/src"]
:figwheel {:websocket-host "localhost"
:on-jsload "frontend.dev/jsload"}
:compiler {:output-to "resources/public/cljs/out/frontend-dev.js"
:output-dir "resources/public/cljs/out"
:optimizations :none
:source-map true}}
{:id "production"
:source-paths ["src-cljs" "yaks/om/src"]
:compiler {:pretty-print false
;; Datascript https://github.com/tonsky/datascript/issues/57
:warnings {:single-segment-namespace false}
:output-to "resources/public/cljs/production/frontend.js"
:output-dir "resources/public/cljs/production"
:optimizations :advanced
:externs ["src-cljs/js/analytics-externs.js"
"src-cljs/js/w3c_rtc-externs.js"
"src-cljs/js/w3c_audio-externs.js"]
:source-map "resources/public/cljs/production/sourcemap-frontend.map"}}]})