forked from larrychristensen/orcpub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
224 lines (191 loc) · 11 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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
(defproject orcpub "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main orcpub.server
:min-lein-version "2.7.1"
:repositories [["apache" "http://repository.apache.org/snapshots/"]
["my.datomic.com" {:url "https://my.datomic.com/repo"
:username [:gpg :env]
:password [:gpg :env]}]]
:dependencies [[org.clojure/clojure "1.9.0-RC1"]
[org.clojure/test.check "0.9.0"]
[org.clojure/clojurescript "1.9.946"]
[org.clojure/core.async "0.3.443"]
[cljsjs/react "15.3.1-0"]
[cljsjs/react-dom "15.3.1-0"]
[cljsjs/facebook "v20150729-0"]
[cljsjs/google-platformjs-extern "1.0.0-0"]
[cljsjs/filesaverjs "1.3.3-0"]
[com.cognitect/transit-cljs "0.8.243"]
[cljs-http "0.1.44"]
[com.andrewmcveigh/cljs-time "0.5.0"]
[clj-time "0.14.0"]
[clj-http "3.6.1"]
[com.yetanalytics/ring-etag-middleware "0.1.1"]
[org.clojure/test.check "0.9.0"]
[org.clojure/core.match "0.3.0-alpha5"]
[re-frame "0.9.0"]
[reagent "0.7.0"]
[garden "1.3.2"]
[org.apache.pdfbox/pdfbox "2.1.0-20170324.170253-831"]
[io.pedestal/pedestal.service "0.5.1"]
[io.pedestal/pedestal.route "0.5.1"]
[io.pedestal/pedestal.jetty "0.5.1"]
[org.clojure/data.json "0.2.6"]
[org.slf4j/slf4j-simple "1.7.21"]
[buddy/buddy-auth "1.4.1"]
[buddy/buddy-hashers "1.2.0"]
[reloaded.repl "0.2.3"]
[bidi "2.0.17"]
[com.stuartsierra/component "0.3.2"]
[com.google.guava/guava "21.0"]
[com.amazonaws/aws-java-sdk-dynamodb "1.11.6"]
[com.fasterxml.jackson.core/jackson-databind "2.7.0"]
[binaryage/devtools "0.9.4"]
[hiccup "1.0.5"]
[com.draines/postal "2.0.2"]
[environ "1.1.0"]
[pdfkit-clj "0.1.6"]
[vvvvalvalval/datomock "0.2.0"]]
:plugins [[lein-figwheel "0.5.14"]
[lein-cljsbuild "1.1.6" :exclusions [[org.clojure/clojure]]]
[lein-garden "0.3.0"]
[lein-environ "1.1.0"]
#_[lein-resource "16.9.1"]]
:source-paths ["src/clj" "src/cljc" "src/cljs"]
:test-paths ["test/clj" "test/cljc" "test/cljs"]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:resource-paths ["resources" "resources/.ebextensions/*.config"]
:uberjar-name "orcpub.jar"
:garden {:builds [{ ;; Optional name of the build:
:id "screen"
;; Source paths where the stylesheet source code is
:source-paths ["src/clj" "src/cljc"]
;; The var containing your stylesheet:
:stylesheet orcpub.styles.core/app
;; Compiler flags passed to `garden.core/css`:
:compiler { ;; Where to save the file:
:output-to "resources/public/css/compiled/styles.css"
;; Compress the output?
:pretty-print? false}}]}
:cljsbuild {:builds
[{:id "dev"
:source-paths ["web/cljs" "src/cljc" "src/cljs"]
;; the presence of a :figwheel configuration here
;; will cause figwheel to inject the figwheel client
;; into your build
:figwheel {:on-jsload "orcpub.core/on-js-reload"
;; :open-urls will pop open your application
;; in the default browser once Figwheel has
;; started and complied your application.
;; Comment this out once it no longer serves you.
:open-urls ["http://localhost:3449/index.html"]}
:compiler {:main orcpub.core
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/orcpub.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true
;; To console.log CLJS data-structures make sure you enable devtools in Chrome
;; https://github.com/binaryage/cljs-devtools
:preloads [devtools.preload]}}
;; This next build is an compressed minified build for
;; production. You can build this with:
;; lein cljsbuild once min
#_{:id "min"
:source-paths ["src/cljc" "src/cljs"]
:compiler {:output-to "resources/public/js/compiled/orcpub.js"
:main orcpub.core
:optimizations :advanced
:pretty-print false}}]}
:figwheel { ;; :http-server-root "public" ;; default and assumes "resources"
;; :server-port 3449 ;; default
;; :server-ip "127.0.0.1"
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
;; :nrepl-port 7888
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :) (see lein-ring)
;; :ring-handler hello_world.server/handler
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
;; :open-file-command "myfile-opener"
;; if you are using emacsclient you can just use
;; :open-file-command "emacsclient"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
}
;; setting up nREPL for Figwheel and ClojureScript dev
;; Please see:
;; https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
:uberjar-inclusions [".ebextensions"]
:jar-inclusions [".ebextensions"]
:aliases {"figwheel-native" ["with-profile" "native-dev" "run" "-m" "user" "--figwheel"]
;;"figwheel-web" ["figwheel"]
"externs" ["do" "clean"
["run" "-m" "externs"]]
"rebuild-modules" ["run" "-m" "user" "--rebuild-modules"]
"prod-build" ^{:doc "Recompile code with prod profile."}
["externs"
["with-profile" "prod" "cljsbuild" "once" "main"]]}
:profiles {:dev {:dependencies [[com.datomic/datomic-free "0.9.5561"]
[binaryage/devtools "0.9.4"]
[figwheel-sidecar "0.5.14"]
[com.cemerick/piggieback "0.2.1"]
[org.clojure/test.check "0.9.0"]]
;; need to add dev source path here to get user.clj loaded
:source-paths ["src/clj" "src/cljc" "src/cljs" "dev"]
;; for CIDER
;; :plugins [[cider/cider-nrepl "0.12.0"]]
:repl-options { ; for nREPL dev you really need to limit output
:init (set! *print-length* 50)
:init-ns user
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:native-dev {:dependencies [[figwheel-sidecar "0.5.14"]
[com.cemerick/piggieback "0.2.1"]
[org.clojure/test.check "0.9.0"]]
:source-paths ["src/cljs" "native/cljs" "src/cljc" "env/dev"]
:cljsbuild {:builds [{:id "main"
:source-paths ["src/cljs" "native/cljs" "src/cljc" "env/dev"]
:figwheel true
:compiler {:output-to "target/not-used.js"
:main "env.main"
:output-dir "target"
:optimizations :none}}]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:prod {:cljsbuild {:builds [{:id "main"
:source-paths ["src/cljs" "native/cljs" "src/cljc" "env/prod"]
:compiler {:output-to "main.js"
:main "env.main"
:output-dir "target"
:static-fns true
:externs ["js/externs.js"]
:parallel-build true
:optimize-constants true
:optimizations :advanced
:closure-defines {"goog.DEBUG" false}}}]}
:dependencies [[com.datomic/datomic-pro "0.9.5561"]]}
:uberjar {:prep-tasks ["clean" "compile" ["cljsbuild" "once" "prod"]]
:env {:production true}
:aot :all
:omit-source true
:cljsbuild {:builds
[{:id "prod"
:source-paths ["web/cljs" "src/cljc" "src/cljs"]
:compiler {:main orcpub.core
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/orcpub.js"
;;:output-dir "resources/public/js/compiled/out"
:optimizations :advanced
:pretty-print false
}}]}}})