This repository has been archived by the owner on Apr 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
57 lines (52 loc) · 3.67 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
;; shadow-cljs configuration
{:source-paths ["src/main"]
:nrepl {:port 8451}
:dependencies
[;; ClojureScript libraries
[cljs-http "0.1.46"] ; HTTP for cljs https://github.com/r0man/cljs-http
[binaryage/oops "0.7.0"] ; ClojureScript macros for convenient native Javascript object access. https://github.com/binaryage/cljs-oops
;; Library for OC projects https://github.com/open-company/open-company-lib
[open-company/lib "0.17.29-alpha50" :excludes [amazonica liberator http-kit ring/ring-codec com.stuartsierra/component clj-time]]
;; In addition to common functions, brings in the following common dependencies used by this project:
;; defun - Erlang-esque pattern matching for Clojure functions https://github.com/killme2008/defun
;; if-let - More than one binding for if/when macros https://github.com/LockedOn/if-let
;; Timbre - Pure Clojure/Script logging library https://github.com/ptaoussanis/timbre
;; environ - Get environment settings from different sources https://github.com/weavejester/environ
;; hickory - HTML as data https://github.com/davidsantiago/hickory
;; cljs-time - clj-time inspired date library for clojurescript. https://github.com/andrewmcveigh/cljs-time
;; com.taoensso/sente - WebSocket client https://github.com/ptaoussanis/sente
;; Dev dependencies
^:dev [binaryage/devtools "1.0.2"]
^:dev [djblue/portal "0.4.0"]]
:builds ;; Electron app
{:desktopapp {:target :node-script
:devtools {:ignore-warnings true
;; :before-load oc.web.core/on-js-reload
:repl-pprint true
:repl-init-ns oc.electron.main}
;; :modules {:oc {:init-fn oc.electron.main/init}}
:dev {:compiler-options {:optimizations :none
:source-map true
:source-map-include-sources-content true
:source-map-detail-level :simple
:closure-defines {oc.electron.main/dev? true
oc.electron.main/sentry-environment "local"
oc.electron.main/web-origin "http://localhost:3559"
oc.electron.main/auth-origin "http://localhost:3003"
oc.electron.main/sentry-dsn "https://[email protected]/4944452"}}}
:repl-pprint true
:compiler-options {:infer-externs :auto
:closure-defines {oc.electron.main/dev? false}}
:output-to "index.js"
:output-dir "public"
:asset-path "js/"
:main oc.electron.main/init
:entries [oc.electron.main]
:release {:compiler-options {:optimizations :advanced
:source-map true
:source-map-include-sources-content true
:source-map-detail-level :symbols
:closure-defines {oc.electron.main/sentry-environment "staging"
oc.electron.main/web-origin "https://staging.carrot.io"
oc.electron.main/auth-origin "https://staging-auth.carrot.io"
oc.electron.main/sentry-dsn "https://[email protected]/1509179"}}}}}}