You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

project.clj 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. (defproject status-im "0.1.0-SNAPSHOT"
  2. :url "https://github.com/status-im/status-react/"
  3. :license {:name "Eclipse Public License"
  4. :url "http://www.eclipse.org/legal/epl-v10.html"}
  5. :dependencies [[org.clojure/clojure "1.10.0"]
  6. [org.clojure/clojurescript "1.10.520"
  7. :exclusions
  8. [com.google.javascript/closure-compiler-unshaded
  9. org.clojure/google-closure-library]]
  10. ;; [com.google.javascript/closure-compiler-unshaded "v20180319"]
  11. ;; v20180506
  12. [com.google.javascript/closure-compiler-unshaded "v20190325"]
  13. [org.clojure/google-closure-library "0.0-20190213-2033d5d9"]
  14. [org.clojure/core.async "0.4.474"]
  15. [reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
  16. [status-im/re-frame "0.10.5"]
  17. [com.andrewmcveigh/cljs-time "0.5.2"]
  18. [status-im/timbre "4.10.0-2-status"]
  19. [com.taoensso/encore "2.94.0"]
  20. [hickory "0.7.1"]
  21. [cljs-bean "1.3.0"]
  22. [com.cognitect/transit-cljs "0.8.248"]
  23. [status-im/pluto "iteration-4-9"]
  24. [mvxcvi/alphabase "1.0.0"]
  25. [rasom/cljs-react-navigation "0.1.4"]]
  26. :plugins [[rasom/lein-githooks "0.1.5"]
  27. [lein-cljsbuild "1.1.7"]
  28. [lein-re-frisk "0.5.8"]
  29. [lein-cljfmt "0.5.7"]]
  30. :githooks {:auto-install true
  31. :pre-commit ["lein cljfmt check src/status_im/core.cljs $(git diff --diff-filter=d --cached --name-only src test/cljs)"]}
  32. :cljfmt {:indents {letsubs [[:inner 0]]}}
  33. :clean-targets ["target/" "index.ios.js" "index.android.js" "status-modules/cljs"]
  34. :aliases {"jsbundle" ^{:doc "Recompile code with prod profile."}
  35. ["do" "clean"
  36. ["with-profile" "prod" "cljsbuild" "once" "ios"]
  37. ["with-profile" "prod" "cljsbuild" "once" "android"]
  38. ["with-profile" "prod" "cljsbuild" "once" "desktop"]]
  39. "jsbundle-android" ^{:doc "Recompile code for Android with prod profile."}
  40. ["do" "clean"
  41. ["with-profile" "prod" "cljsbuild" "once" "android"]]
  42. "jsbundle-ios" ^{:doc "Recompile code for iOS with prod profile."}
  43. ["do" "clean"
  44. ["with-profile" "prod" "cljsbuild" "once" "ios"]]
  45. "jsbundle-desktop" ^{:doc "Recompile code for desktop with prod profile."}
  46. ["do" "clean"
  47. ["with-profile" "prod" "cljsbuild" "once" "desktop"]]
  48. "figwheel-repl" ["with-profile" "+figwheel" "run" "-m" "clojure.main" "env/dev/run.clj"]
  49. "test-cljs" ["with-profile" "test" "doo" "node" "test" "once"]
  50. "test-protocol" ["with-profile" "test" "doo" "node" "protocol" "once"]
  51. "test-env-dev-utils" ["with-profile" "test" "doo" "node" "env-dev-utils" "once"]}
  52. :profiles {:dev {:dependencies [[cider/piggieback "0.4.0"]]
  53. :cljsbuild {:builds
  54. {:ios
  55. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/mobile" "src" "dev"]
  56. :compiler {:output-to "target/ios/app.js"
  57. :main "env.ios.main"
  58. :output-dir "target/ios"
  59. :optimizations :none}}
  60. :android
  61. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/mobile" "src" "dev"]
  62. :compiler {:output-to "target/android/app.js"
  63. :main "env.android.main"
  64. :output-dir "target/android"
  65. :optimizations :none}
  66. :warning-handlers [status-im.utils.build/warning-handler]}
  67. :desktop
  68. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/desktop" "src" "dev"]
  69. :compiler {:output-to "target/desktop/app.js"
  70. :main "env.desktop.main"
  71. :output-dir "target/desktop"
  72. :optimizations :none}}}}
  73. :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]
  74. :timeout 240000}}
  75. :figwheel [:dev
  76. {:dependencies [[figwheel-sidecar "0.5.18"]
  77. [re-frisk-remote "0.5.5"]
  78. [re-frisk-sidecar "0.5.7"]
  79. [day8.re-frame/tracing "0.5.0"]
  80. [hawk "0.2.11"]]
  81. :source-paths ["src" "env/dev" "react-native/src/cljsjs" "components/src" "dev"]}]
  82. :test {:dependencies [[day8.re-frame/test "0.1.5"]]
  83. :plugins [[lein-doo "0.1.9"]]
  84. :cljsbuild {:builds
  85. [{:id "test"
  86. :source-paths ["components/src" "src" "test/cljs" "dev"]
  87. :compiler {:main status-im.test.runner
  88. :output-to "target/test/test.js"
  89. :output-dir "target/test"
  90. :optimizations :none
  91. :preamble ["js/hook-require.js"]
  92. :target :nodejs}}
  93. {:id "protocol"
  94. :source-paths ["components/src" "src" "test/cljs" "dev"]
  95. :compiler {:main status-im.test.protocol.runner
  96. :output-to "target/test/test.js"
  97. :output-dir "target/test"
  98. :optimizations :none
  99. :preamble ["js/hook-require.js"]
  100. :target :nodejs}}
  101. {:id "env-dev-utils"
  102. :source-paths ["env/dev/env/utils.cljs" "test/env/dev" "dev"]
  103. :compiler {:main env.test.runner
  104. :output-to "target/test/test.js"
  105. :output-dir "target/test"
  106. :optimizations :none
  107. :target :nodejs}}]}}
  108. :prod {:cljsbuild {:builds
  109. {:ios
  110. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/mobile" "src" "env/prod" "prod"]
  111. :compiler {:main "env.ios.main"
  112. :output-dir "target/ios-prod"
  113. :static-fns true
  114. :fn-invoke-direct true
  115. :optimize-constants true
  116. :optimizations :advanced
  117. :pseudo-names false
  118. :pretty-print false
  119. :closure-defines {"goog.DEBUG" false}
  120. :parallel-build false
  121. :elide-asserts true
  122. :externs ["externs.js"]
  123. :language-in :es-2015
  124. :language-out :es-2015
  125. :modules {:cljs-base {:output-to "index.ios.js"}
  126. :i18n {:entries #{"status_im.goog.i18n"}
  127. :output-to "status-modules/cljs/i18n-raw.js"}
  128. :network {:entries #{"status_im.network.ui.network_details.views"
  129. "status_im.network.ui.edit_network.views"
  130. "status_im.network.ui.edit_network.styles"
  131. "status_im.network.ui.views"
  132. "status_im.network.ui.styles"
  133. "status_im.network.events"
  134. "status_im.network.subs"
  135. "status_im.network.core"}
  136. :output-to "status-modules/cljs/network-raw.js"}
  137. :extensions {:entries #{"status_im.extensions.ui.db"
  138. "status_im.extensions.ui.add.events"
  139. "status_im.extensions.ui.add.views"
  140. "status_im.extensions.ui.add.styles"
  141. "status_im.extensions.ui.views"
  142. "status_im.extensions.ui.styles"
  143. "status_im.extensions.events"
  144. "status_im.extensions.registry"
  145. "status_im.extensions.core"
  146. "status_im.extensions.module"
  147. "status_im.extensions.capacities.events"
  148. "status_im.extensions.capacities.subs"
  149. "status_im.extensions.capacities.camera.events"
  150. "status_im.extensions.capacities.camera.views"
  151. "status_im.extensions.capacities.components"
  152. "status_im.extensions.capacities.views"
  153. "status_im.extensions.capacities.ethereum"
  154. "status_im.extensions.capacities.map"
  155. "status_im.extensions.capacities.network"}
  156. :output-to "status-modules/cljs/extensions-raw.js"}}}
  157. :warning-handlers [status-im.utils.build/warning-handler]}
  158. :android
  159. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/mobile" "src" "env/prod" "prod"]
  160. :compiler {:main "env.android.main"
  161. :output-dir "target/android-prod"
  162. :static-fns true
  163. :fn-invoke-direct true
  164. :optimize-constants true
  165. :optimizations :advanced
  166. :stable-names true
  167. :pseudo-names false
  168. :pretty-print false
  169. :closure-defines {"goog.DEBUG" false}
  170. :parallel-build false
  171. :elide-asserts true
  172. :externs ["externs.js"]
  173. :language-in :es-2015
  174. :language-out :es-2015
  175. :modules {:cljs-base {:output-to "index.android.js"}
  176. :i18n {:entries #{"status_im.goog.i18n"}
  177. :output-to "status-modules/cljs/i18n-raw.js"}
  178. :network {:entries #{"status_im.network.ui.network_details.views"
  179. "status_im.network.ui.edit_network.views"
  180. "status_im.network.ui.edit_network.styles"
  181. "status_im.network.ui.views"
  182. "status_im.network.ui.styles"
  183. "status_im.network.events"
  184. "status_im.network.subs"
  185. "status_im.network.core"}
  186. :output-to "status-modules/cljs/network-raw.js"}
  187. :extensions {:entries #{"status_im.extensions.ui.db"
  188. "status_im.extensions.ui.add.events"
  189. "status_im.extensions.ui.add.views"
  190. "status_im.extensions.ui.add.styles"
  191. "status_im.extensions.ui.views"
  192. "status_im.extensions.ui.styles"
  193. "status_im.extensions.events"
  194. "status_im.extensions.registry"
  195. "status_im.extensions.core"
  196. "status_im.extensions.module"
  197. "status_im.extensions.capacities.events"
  198. "status_im.extensions.capacities.subs"
  199. "status_im.extensions.capacities.camera.events"
  200. "status_im.extensions.capacities.camera.views"
  201. "status_im.extensions.capacities.components"
  202. "status_im.extensions.capacities.views"
  203. "status_im.extensions.capacities.ethereum"
  204. "status_im.extensions.capacities.map"
  205. "status_im.extensions.capacities.network"}
  206. :output-to "status-modules/cljs/extensions-raw.js"}}}
  207. :warning-handlers [status-im.utils.build/warning-handler]}
  208. :desktop
  209. {:source-paths ["components/src" "react-native/src/cljsjs" "react-native/src/desktop" "src" "env/prod" "prod"]
  210. :compiler {:main "env.desktop.main"
  211. :output-dir "target/desktop-prod"
  212. :static-fns true
  213. :fn-invoke-direct true
  214. :optimize-constants true
  215. :optimizations :simple
  216. :closure-defines {"goog.DEBUG" false}
  217. :pseudo-names false
  218. :pretty-print false
  219. :parallel-build false
  220. :elide-asserts true
  221. :language-in :es-2015
  222. :language-out :es-2015
  223. :modules {:cljs-base {:output-to "index.desktop.js"}
  224. :i18n {:entries #{"status_im.goog.i18n"}
  225. :output-to "status-modules/cljs/i18n-raw.js"}
  226. :network {:entries #{"status_im.network.ui.network_details.views"
  227. "status_im.network.ui.edit_network.views"
  228. "status_im.network.ui.edit_network.styles"
  229. "status_im.network.ui.views"
  230. "status_im.network.ui.styles"
  231. "status_im.network.events"
  232. "status_im.network.subs"
  233. "status_im.network.core"}
  234. :output-to "status-modules/cljs/network-raw.js"}
  235. :extensions {:entries #{"status_im.extensions.ui.db"
  236. "status_im.extensions.ui.add.events"
  237. "status_im.extensions.ui.add.views"
  238. "status_im.extensions.ui.add.styles"
  239. "status_im.extensions.ui.views"
  240. "status_im.extensions.ui.styles"
  241. "status_im.extensions.events"
  242. "status_im.extensions.registry"
  243. "status_im.extensions.core"
  244. "status_im.extensions.module"
  245. "status_im.extensions.capacities.events"
  246. "status_im.extensions.capacities.subs"
  247. "status_im.extensions.capacities.camera.events"
  248. "status_im.extensions.capacities.camera.views"
  249. "status_im.extensions.capacities.components"
  250. "status_im.extensions.capacities.views"
  251. "status_im.extensions.capacities.ethereum"
  252. "status_im.extensions.capacities.map"
  253. "status_im.extensions.capacities.network"}
  254. :output-to "status-modules/cljs/extensions-raw.js"}}}
  255. :warning-handlers [status-im.utils.build/warning-handler]}}}}})