Integrate re-frame-10x for tracing/debugging
- Update re-frisk-remote and re-frisk-sidecar - Use re-frame 0.10.5 as required by re-frame-10x - Enable re-frame tracing by adding hack to figwheel-bridge.js as there is no :closure-defines support in RN yet Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
This commit is contained in:
parent
55d3095b7a
commit
811e73d34b
|
@ -211,7 +211,11 @@ function loadApp(platform, devHost, onLoadCb) {
|
|||
// This is needed because of RN packager
|
||||
// seriously React packager? why.
|
||||
var googreq = goog.require;
|
||||
|
||||
// NOTE: :closure-defines is not working with RN
|
||||
goog.global.CLOSURE_UNCOMPILED_DEFINES = {
|
||||
"re_frame.trace.trace_enabled_QMARK_":true,
|
||||
"day8.re_frame.tracing.trace_enabled_QMARK_": true
|
||||
};
|
||||
googreq(`env.${platform}.main`);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
[org.clojure/clojurescript "1.9.946"]
|
||||
[org.clojure/core.async "0.4.474"]
|
||||
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
|
||||
[status-im/re-frame "0.10.2"]
|
||||
[status-im/re-frame "0.10.5"]
|
||||
[com.andrewmcveigh/cljs-time "0.5.2"]
|
||||
[com.taoensso/timbre "4.10.0"]
|
||||
[hickory "0.7.1"]
|
||||
[com.cognitect/transit-cljs "0.8.243"]]
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-re-frisk "0.5.6"]]
|
||||
[lein-re-frisk "0.5.7"]]
|
||||
:clean-targets ["target/" "index.ios.js" "index.android.js"]
|
||||
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
|
||||
["do" "clean"
|
||||
|
@ -53,8 +53,9 @@
|
|||
:timeout 240000}}
|
||||
:figwheel [:dev
|
||||
{:dependencies [[figwheel-sidecar "0.5.14"]
|
||||
[re-frisk-remote "0.5.4"]
|
||||
[re-frisk-sidecar "0.5.5"]
|
||||
[re-frisk-remote "0.5.5"]
|
||||
[re-frisk-sidecar "0.5.6"]
|
||||
[day8.re-frame/tracing "0.5.0"]
|
||||
[hawk "0.2.11"]]
|
||||
:source-paths ["src" "env/dev" "react-native/src" "components/src"]}]
|
||||
:test {:dependencies [[day8.re-frame/test "0.1.5"]]
|
||||
|
|
Loading…
Reference in New Issue