-
Notifications
You must be signed in to change notification settings - Fork 3
/
shadow-cljs.edn
83 lines (74 loc) · 5 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
{:deps {:aliases [:cljsbuild :rad]}
:nrepl {:port 9000}
:jvm-opts ["-Xmx1G"]
:builds {:main {:target :browser
:output-dir "resources/public/admin/js/main"
:asset-path "/admin/js/main"
:build-hooks
[(shadow-git-inject.core/hook)]
:modules {:main {:init-fn riverdb.client/init
:entries [riverdb.client]}}
;;; guardrails checks only during dev
;:dev {:compiler-options
; {:external-config {:guardrails {}}}}
:compiler-options
{:closure-defines {riverdb.client/version :shadow-git-inject/version}}
:dev {:closure-defines {com.fulcrologic.fulcro.inspect.inspect_ws/SERVER_PORT 8237}}
:devtools {:after-load riverdb.client/refresh
:preloads [com.fulcrologic.fulcro.inspect.preload
;com.fulcrologic.fulcro.inspect.websocket-preload
riverdb.development-preload]
:watch-dir "resources/public/admin/css"}
:js-options {:resolve
{
;; for performance checking during dev
;;"react-dom" {:target :npm
;;:require "react-dom/cjs/react-dom.production.min.js"}
;;"react" {:target :npm
;;:require "react/cjs/react.production.min.js"}
"js-joda"
{:target :npm
:require "@js-joda/core"}
;; Make js-joda-timezone a reasonable build size
"js-joda-timezone"
{:target :npm
:require "@js-joda/timezone/dist/js-joda-timezone-10-year-range.min.js"}}}}
:native
{:target :react-native
:init-fn riverdb.client-native/init
:output-dir "mobile/app"
:dev {:closure-defines {riverdb.client-native/SERVER_URL "http://localhost:8989/api"}}
:release {:compiler-options {:optimizations :simple
:infer-externs :auto
:variable-renaming :off
:property-renaming :off
:pretty-print true
:source-map true}}
:js-options {:node-modules-dir "mobile/node_modules"}
:devtools {:autoload true
:after-load riverdb.client-native/start
:preloads [shadow.expo.keep-awake]}}
;; Uncomment the following line if you're running Fulcro Inspect Electron
;com.fulcrologic.fulcro.inspect.websocket-preload
:test {:target :browser-test
:test-dir "resources/public/js/test"
:ns-regexp "-test$"
;; static required for mocking to work
:compiler-options {:static-fns false
:external-config {:guardrails {}}}
:devtools {:http-port 8022
:http-resource-root "public"
:http-root "resources/public/js/test"}}
:ci-tests {:target :karma
:js-options {:js-provider :shadow}
:compiler-options {:static-fns false} ; required for mocking to work
:output-to "target/ci.js"
:ns-regexp "-test$"}
:workspaces {:target nubank.workspaces.shadow-cljs.target
:ns-regexp "-(test|ws)$"
:output-dir "resources/public/workspaces/js"
:asset-path "/workspaces/js"
:devtools {:preloads [com.fulcrologic.fulcro.inspect.preload]
:http-root "resources/public/workspaces"
:http-port 8023
:http-resource-root "."}}}}