-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
127 lines (104 loc) · 5.18 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
(defproject fractals "0.1.0"
:description "fractals"
:url "fractals"
:license {:name "fractals"
:url "fractals"}
:dependencies [[org.clojure/clojure "1.9.0-beta2"]
[org.clojure/clojurescript "1.9.946" :scope "provided"]
[ring "1.6.2"]
[ring/ring-defaults "0.3.1"]
[bk/ring-gzip "0.2.1"]
[radicalzephyr/ring.middleware.logger "0.6.0"]
[compojure "1.6.0"]
[environ "1.1.0"]
[com.stuartsierra/component "0.3.2"]
[org.danielsz/system "0.4.0"]
[org.clojure/tools.namespace "0.2.11"]
[http-kit "2.2.0"]
[rum "0.10.8"]
[org.clojure/test.check "0.10.0-alpha2"]
[net.sourceforge.cssparser/cssparser "0.9.23"]
[org.mindrot/jbcrypt "0.4"]
[clojure.java-time "0.3.0"]
[org.apache.poi/poi "3.16"]
[org.apache.poi/poi-ooxml "3.16"]
[com.datomic/datomic-free "0.9.5561.54" :exclusions [com.google.guava/guava]]]
:plugins [[lein-cljsbuild "1.1.6"]
[lein-environ "1.1.0"]
[cider/cider-nrepl "0.16.0-SNAPSHOT"]]
:min-lein-version "2.6.1"
:source-paths ["src/clj" "src/cljs" "src/cljc"]
:test-paths ["test/clj" "test/cljc"]
:clean-targets ^{:protect false} [:target-path :compile-path "resources/public/js"]
:uberjar-name "fractals.jar"
;; Use `lein run` if you just want to start a HTTP server, without figwheel
:main fractals.application
;; nREPL by default starts in the :main namespace, we want to start in `user`
;; because that's where our development helper functions like (go) and
;; (browser-repl) live.
:repl-options {:init-ns user}
:cljsbuild {:builds
[{:id "app"
:source-paths ["src/cljs" "src/cljc" "dev"]
:figwheel {:on-jsload "fractals.core/reset"}
:compiler {:main cljs.user
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/fractals.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true}}
{:id "test"
:source-paths ["src/cljs" "test/cljs" "src/cljc" "test/cljc"]
:compiler {:output-to "resources/public/js/compiled/testable.js"
:main fractals.test-runner
:optimizations :none
:process-shim false}}
{:id "min"
:source-paths ["src/cljs" "src/cljc"]
:jar true
:compiler {:main fractals.core
:output-to "resources/public/js/compiled/fractals.js"
:output-dir "target"
:source-map-timestamp true
:optimizations :advanced
:pretty-print false}}]}
;; When running figwheel from nREPL, figwheel will read this configuration
;; stanza, but it will read it without passing through leiningen's profile
;; merging. So don't put a :figwheel section under the :dev profile, it will
;; not be picked up, instead configure figwheel here on the top level.
:figwheel {;; :http-server-root "public" ;; serve static assets from resources/public/
:server-port 3448 ;; default
;; :server-ip "127.0.0.1" ;; default
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process. We
;; don't do this, instead we do the opposite, running figwheel from
;; an nREPL process, see
;; https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
;; :nrepl-port 7888
;; 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"
:server-logfile "log/figwheel.log"}
:doo {:build "test"}
:profiles {:dev
{:dependencies [[figwheel "0.5.13"]
[figwheel-sidecar "0.5.13"]
[com.cemerick/piggieback "0.2.2"]
[org.clojure/tools.nrepl "0.2.13"]
[lein-doo "0.1.7"]
[reloaded.repl "0.2.3"]]
:plugins [[lein-figwheel "0.5.13"]
[lein-doo "0.1.7"]]
:source-paths ["dev"]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:uberjar
{:source-paths ^:replace ["src/clj" "src/cljc"]
:prep-tasks ["compile"
["cljsbuild" "once" "min"]]
:hooks []
:omit-source true
:aot :all}})