-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
87 lines (77 loc) · 3.84 KB
/
shadow-cljs.edn
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
{:source-paths ["src"]
:dependencies [[org.clojure/core.match "0.3.0-alpha5"]
[reagent "0.8.1"]
[re-frame "0.10.6"]
[cljs-ajax "0.7.4"]
[day8.re-frame/http-fx "0.1.6"]
[day8.re-frame/async-flow-fx "0.0.11"]
[com.yetanalytics/sse-fx "0.1.1"]
[com.smxemail/re-frame-cookie-fx "0.0.2"]
[com.andrewmcveigh/cljs-time "0.5.2"]
;; [org.clojure/core.incubator "0.1.4"]
[garden "1.3.6"]
;; spec
[com.taoensso/truss "1.5.0"]
;;
[day8.re-frame/test "0.1.5"]
;; [karma-reporter "1.0.1"]
[binaryage/devtools "0.9.10"]
[day8.re-frame/re-frame-10x "0.3.6-react16"]
[re-frisk "0.5.4"]
[cider/cider-nrepl "0.18.0"]
]
;; TODO: How-to dev dependencies?
:builds {:app {
:output-dir "target/"
:asset-path "."
:target :browser
:modules {:main {:init-fn main/init
:entries [main]}
:lang-en {:entries [lang.en] :depends-on #{:main}}
:lang-pt {:entries [lang.pt] :depends-on #{:main}}}
:compiler-options {:closure-warnings {:global-this :off}
:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true
"day8.re_frame.tracing.trace_enabled_QMARK_" true}}
:devtools {:after-load main/reload!
:http-root "target"
:http-port 8080
:preloads [
;devtools.preload
;day8.re-frame-10x.preload
;re-frisk.preload
]}}
;; :output-dir "target/"
;; :asset-path "."
;; :target :browser
;; :modules {:main {:entries [main]}}
;; :compiler-options {:closure-warnings {:global-this :off}}
;; :devtools {:after-load main/reload!
;; :http-root "target"
;; :http-port 8080
;; }}
;; :ci {:output-to "target/ci.js"
;; :asset-path "."
;; :target :karma
;; :modules {:main {:entries [main]}}
;; :compiler-options {:closure-warnings {:global-this :off}
;; :infer-externs :auto}}
:prod {:output-dir "target/"
:asset-path "."
:target :browser
:modules {:main {:init-fn main/init :entries [main]}
:lang-en {:entries [lang.en] :depends-on #{:main}}
:lang-pt {:entries [lang.pt] :depends-on #{:main}}}
:compiler-options {:optimizations :advanced
:closure-warnings {:global-this :off}
:infer-externs :auto
:fn-invoke-direct true
;; TODO: Ideally, on production elide should
;; be `true` most of the time, except when
;; doing timely consistency checks of the
;; entire app database.
;; NOTE: This is not enough. Truss isn't
;; asserting anything. Figure out why.
:elide-asserts false
}}}
:ssl {:keystore "resources/ssl.jks"
:password "devdev"}}