-
Notifications
You must be signed in to change notification settings - Fork 1
/
deps.edn
101 lines (88 loc) · 5.37 KB
/
deps.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{:deps {;; both frontend and backend
org.clojure/clojure {:mvn/version "1.11.1"}
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
metosin/malli {:mvn/version "0.13.0"}
metosin/reitit {:mvn/version "0.7.0-alpha7"}
metosin/muuntaja {:mvn/version "0.6.8"}
markdown-to-hiccup/markdown-to-hiccup {:mvn/version "0.6.2"}
sg.flybot/lasagna-pull {:git/url "https://github.com/flybot-sg/lasagna-pull.git"
:git/sha "26e01fd71e76211b09aad7e7695b2065cf886842"}
;; backend
ring/ring-defaults {:mvn/version "0.4.0"}
aleph/aleph {:mvn/version "0.6.3"}
robertluo/fun-map {:mvn/version "0.5.110"}
datalevin/datalevin {:mvn/version "0.8.21"}
skydread1/reitit-oauth2 {:git/url "https://github.com/skydread1/reitit-oauth2.git"
:git/sha "c06a3be2f00d5358a50c108816fe0cbfa9f67be1"}}
:paths ["server/src" "common/src" "resources"]
:aliases
{;;---------- SERVER ----------
;; JVM options to make datalevin work with java version > java8
;; alway use it
:jvm-base {:jvm-opts ["--add-opens=java.base/java.nio=ALL-UNNAMED"
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"]}
;; CLJ paths for the backend systems and tests
:server/dev {:extra-paths ["config" "target" "common/test" "server/test"]}
;; Run clj tests
:server/test {:extra-paths ["common/test" "server/test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.87.1366"}
lambdaisland/kaocha-cloverage {:mvn/version "1.1.89"}}
:main-opts ["-m" "kaocha.runner"]}
;;---------- CLIENT ----------
;; use for both web and mobile
:client {:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.18"}
org.clojure/clojurescript {:mvn/version "1.11.121"}
reagent/reagent {:mvn/version "1.2.0"}
cljsjs/highlight {:mvn/version "11.7.0-0"}
cljsjs/react {:mvn/version "18.2.0-1"}
cljsjs/react-dom {:mvn/version "18.2.0-1"}
cljsjs/react-toastify {:mvn/version "9.1.3-0"}
cljs-ajax/cljs-ajax {:mvn/version "0.8.4"}
re-frame/re-frame {:mvn/version "1.3.0"}
day8.re-frame/http-fx {:mvn/version "0.2.4"}
day8.re-frame/test {:mvn/version "0.1.5"}}
:extra-paths ["client/web/src" "client/common/src"
"client/web/test" "common/test"
"config" "target"]}
;;---------- MOBILE ----------
;; deps for react native - use with :client
:mobile/rn {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.773"} ;; last version causes error
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
io.vouch/reagent-react-native {:git/url "https://github.com/vouch-opensource/reagent-react-native.git"
:sha "dc4a6730e0da3f8b99243b1fd0912a5c802b43bc"}}
:extra-paths ["client/mobile/src"]}
;; cljs repl for figwheel hot reloading development/testing
;; Run `npm run ios` in another terminal to start the simulator
:mobile/ios {:main-opts ["--main" "figwheel.main"
"--build" "ios"
"--repl"]}
;;---------- WEB ----------
;; cljs repl for figwheel hot reloading development/testing
;; be sure to not have a main.js in resources/public
:web/dev {:main-opts ["--main" "figwheel.main"
"--build" "dev"
"--repl"]}
;; build the optimised js bundle
:web/prod {:main-opts ["--main" "figwheel.main"
"--build-once" "prod"]}
;; Run the cljs tests
:web/test {:main-opts ["-m" "figwheel.main"
"-m" "flybot.client.web.test-runner"]}
;; Run the cljs tests with chrome headless
:web/test-headless {:main-opts ["-m" "figwheel.main"
"-co" "tests.cljs.edn"
"-m" "flybot.client.web.test-runner"]}
;;---------- BUILD ----------
;; build frontend js bundle : clj -T:build js-bundle
;; build backend uberjar: clj -T:build uber
;; build both js and jar : clj -T:build uber+js
:build {:deps {io.github.clojure/tools.build {:git/tag "v0.9.6" :git/sha "8e78bcc"}}
:ns-default build}
;; build image and push to image repo
;; clj -T:jib build
:jib {:deps {io.github.atomisthq/jibbit {:git/tag "v0.1.14" :git/sha "ca4f7d3"}}
:ns-default jibbit.core
:ns-aliases {jib jibbit.core}}
:outdated {;; Note that it is `:deps`, not `:extra-deps`
:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
:main-opts ["-m" "antq.core"]}}}