-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
49 lines (49 loc) · 3.32 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
(defproject high-voltage "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"}
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.238"]
[binaryage/oops "0.5.8"]
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
[re-frame "0.9.3"]
[react-native-externs "0.1.0"]
[funcool/promesa "1.9.0"]
]
:plugins [[lein-cljsbuild "1.1.4"]
[lein-figwheel "0.5.14"]]
:clean-targets ["target/" "main.js"]
:aliases {"figwheel" ["run" "-m" "user" "--figwheel"]
; TODO: Remove custom extern inference as it's unreliable
;"externs" ["do" "clean"
; ["run" "-m" "externs"]]
"rebuild-modules" ["run" "-m" "user" "--rebuild-modules"]
"prod-build" ^{:doc "Recompile code with prod profile."}
["with-profile" "prod" "cljsbuild" "once" "main"]}
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.14"]
[org.clojure/tools.nrepl "0.2.13" :exclusions [org.clojure/clojure]]
[com.cemerick/piggieback "0.2.1"]]
:plugins [[refactor-nrepl "2.4.0-SNAPSHOT"]
[cider/cider-nrepl "0.17.0-SNAPSHOT"]]
:source-paths ["src" "env/dev"]
:cljsbuild {:builds [{:id "main"
:source-paths ["src" "env/dev"]
:figwheel true
:compiler {:output-to "target/expo/not-used.js"
:main "env.expo.main"
:output-dir "target/expo"
:optimizations :none}}]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:prod {:cljsbuild {:builds [{:id "main"
:source-paths ["src" "env/prod"]
:compiler {:output-to "main.js"
:main "env.expo.main"
:output-dir "target/expo"
:static-fns true
:externs ["js/externs.js"]
:infer-externs true
:parallel-build true
:optimize-constants true
:optimizations :advanced
:closure-defines {"goog.DEBUG" false}}}]}}})