-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.clj
50 lines (50 loc) · 3.69 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
(defproject time-align-mobile "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"]
[metosin/spec-tools "0.7.2"]
[org.clojure/test.check "0.9.0"] ;; TODO: move to dev deps when we don't need generation of data
[zprint "0.4.9"]
[com.rpl/specter "1.1.1"]
[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"]
[com.cemerick/piggieback "0.2.1"]]
: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"
:optimizations :advanced
;; :pseudo-names true
:static-fns true
:externs ["js/externs.js"]
:infer-externs true
:parallel-build true
:optimize-constants true
:closure-defines {"goog.DEBUG" false}}}]}}})