2016-05-19 16:31:56 +00:00
|
|
|
(defproject status-im "0.1.0-SNAPSHOT"
|
2017-09-02 16:11:31 +00:00
|
|
|
:url "https://github.com/status-im/status-react/"
|
2016-03-04 17:28:06 +00:00
|
|
|
:license {:name "Eclipse Public License"
|
|
|
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
2018-01-17 08:13:11 +00:00
|
|
|
:dependencies [[org.clojure/clojure "1.9.0"]
|
2017-10-19 13:58:21 +00:00
|
|
|
[org.clojure/clojurescript "1.9.946"]
|
2018-01-17 08:13:11 +00:00
|
|
|
[org.clojure/core.async "0.4.474"]
|
2017-10-19 04:38:20 +00:00
|
|
|
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
|
2018-02-15 10:39:41 +00:00
|
|
|
[status-im/re-frame "0.10.2"]
|
2018-01-17 08:13:11 +00:00
|
|
|
[com.andrewmcveigh/cljs-time "0.5.2"]
|
2017-08-17 16:49:03 +00:00
|
|
|
[com.taoensso/timbre "4.10.0"]
|
2017-10-19 13:58:21 +00:00
|
|
|
[hickory "0.7.1"]
|
|
|
|
[com.cognitect/transit-cljs "0.8.243"]]
|
2017-08-17 16:49:03 +00:00
|
|
|
:plugins [[lein-cljsbuild "1.1.7"]
|
2017-12-04 10:09:41 +00:00
|
|
|
[lein-re-frisk "0.5.5"]]
|
2016-03-04 17:28:06 +00:00
|
|
|
:clean-targets ["target/" "index.ios.js" "index.android.js"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
|
2017-10-19 04:38:20 +00:00
|
|
|
["do" "clean"
|
|
|
|
["with-profile" "prod" "cljsbuild" "once" "ios"]
|
|
|
|
["with-profile" "prod" "cljsbuild" "once" "android"]]
|
2018-02-06 18:10:35 +00:00
|
|
|
"prod-build-android" ^{:doc "Recompile code for Android with prod profile."}
|
|
|
|
["do" "clean"
|
|
|
|
["with-profile" "prod" "cljsbuild" "once" "android"]]
|
|
|
|
"prod-build-ios" ^{:doc "Recompile code for iOS with prod profile."}
|
|
|
|
["do" "clean"
|
|
|
|
["with-profile" "prod" "cljsbuild" "once" "ios"]]
|
2018-01-18 10:15:37 +00:00
|
|
|
"figwheel-repl" ["with-profile" "+figwheel" "run" "-m" "clojure.main" "env/dev/run.clj"]
|
|
|
|
"test-cljs" ["with-profile" "test" "doo" "node" "test" "once"]
|
|
|
|
"test-protocol" ["with-profile" "test" "doo" "node" "protocol" "once"]
|
2017-12-22 12:35:05 +00:00
|
|
|
"test-env-dev-utils" ["with-profile" "test" "doo" "node" "env-dev-utils" "once"]}
|
2018-01-18 10:15:37 +00:00
|
|
|
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.2"]]
|
|
|
|
:cljsbuild {:builds
|
|
|
|
{:ios
|
2018-03-22 14:48:04 +00:00
|
|
|
{:source-paths ["components/src" "react-native/src" "src"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:compiler {:output-to "target/ios/app.js"
|
|
|
|
:main "env.ios.main"
|
|
|
|
:output-dir "target/ios"
|
|
|
|
:optimizations :none}}
|
|
|
|
:android
|
2018-03-22 14:48:04 +00:00
|
|
|
{:source-paths ["components/src" "react-native/src" "src"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:compiler {:output-to "target/android/app.js"
|
|
|
|
:main "env.android.main"
|
|
|
|
:output-dir "target/android"
|
|
|
|
:optimizations :none}
|
2018-03-22 14:48:04 +00:00
|
|
|
:warning-handlers [status-im.utils.build/warning-handler]}
|
|
|
|
:desktop
|
|
|
|
{:source-paths ["components/src" "react-native/src" "src"]
|
|
|
|
:compiler {:output-to "target/desktop/app.js"
|
|
|
|
:main "env.desktop.main"
|
|
|
|
:output-dir "target/desktop"
|
|
|
|
:optimizations :none}}}}
|
2018-01-18 10:15:37 +00:00
|
|
|
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
|
|
|
:timeout 240000}}
|
|
|
|
:figwheel [:dev
|
|
|
|
{:dependencies [[figwheel-sidecar "0.5.14"]
|
|
|
|
[re-frisk-remote "0.5.3"]
|
|
|
|
[re-frisk-sidecar "0.5.4"]
|
|
|
|
[hawk "0.2.11"]]
|
2018-03-22 14:48:04 +00:00
|
|
|
:source-paths ["src" "env/dev" "react-native/src" "components/src"]}]
|
2018-01-18 10:15:37 +00:00
|
|
|
:test {:dependencies [[day8.re-frame/test "0.1.5"]]
|
|
|
|
:plugins [[lein-doo "0.1.7"]]
|
|
|
|
:cljsbuild {:builds
|
|
|
|
[{:id "test"
|
2018-03-22 14:48:04 +00:00
|
|
|
:source-paths ["components/src" "src" "test/cljs"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:compiler {:main status-im.test.runner
|
|
|
|
:output-to "target/test/test.js"
|
|
|
|
:output-dir "target/test"
|
|
|
|
:optimizations :none
|
|
|
|
:preamble ["js/hook-require.js"]
|
|
|
|
:target :nodejs}}
|
|
|
|
{:id "protocol"
|
|
|
|
:source-paths ["src" "test/cljs"]
|
|
|
|
:compiler {:main status-im.test.protocol.runner
|
|
|
|
:output-to "target/test/test.js"
|
|
|
|
:output-dir "target/test"
|
|
|
|
:optimizations :none
|
|
|
|
:target :nodejs}}
|
|
|
|
{:id "env-dev-utils"
|
|
|
|
:source-paths ["env/dev/env/utils.cljs" "test/env/dev"]
|
|
|
|
:compiler {:main env.test.runner
|
|
|
|
:output-to "target/test/test.js"
|
|
|
|
:output-dir "target/test"
|
|
|
|
:optimizations :none
|
|
|
|
:target :nodejs}}]}}
|
|
|
|
:prod {:cljsbuild {:builds
|
|
|
|
{:ios
|
2018-03-22 14:48:04 +00:00
|
|
|
{:source-paths ["components/src" "react-native/src" "src" "env/prod"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:compiler {:output-to "index.ios.js"
|
|
|
|
:main "env.ios.main"
|
|
|
|
:output-dir "target/ios-prod"
|
|
|
|
:static-fns true
|
|
|
|
:optimize-constants true
|
|
|
|
:optimizations :simple
|
|
|
|
:closure-defines {"goog.DEBUG" false}
|
|
|
|
:parallel-build false
|
2018-03-13 17:04:04 +00:00
|
|
|
:elide-asserts true
|
2018-01-18 10:15:37 +00:00
|
|
|
:language-in :ecmascript5}
|
|
|
|
:warning-handlers [status-im.utils.build/warning-handler]}
|
|
|
|
:android
|
2018-03-22 14:48:04 +00:00
|
|
|
{:source-paths ["components/src" "react-native/src" "src" "env/prod"]
|
2018-01-18 10:15:37 +00:00
|
|
|
:compiler {:output-to "index.android.js"
|
|
|
|
:main "env.android.main"
|
|
|
|
:output-dir "target/android-prod"
|
|
|
|
:static-fns true
|
|
|
|
:optimize-constants true
|
|
|
|
:optimizations :simple
|
|
|
|
:closure-defines {"goog.DEBUG" false}
|
|
|
|
:parallel-build false
|
2018-03-13 17:04:04 +00:00
|
|
|
:elide-asserts true
|
2018-01-18 10:15:37 +00:00
|
|
|
:language-in :ecmascript5}
|
|
|
|
:warning-handlers [status-im.utils.build/warning-handler]}}}}})
|