From 3f032463c6246cae57dfc3ca1815d65c9e795ed1 Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Tue, 15 Dec 2015 19:25:50 +0100 Subject: [PATCH] describe how to start Figwheel from nREPL in readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 553969b..cd4083f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Generated project works in iOS and Android devices. - Works in real Android device - Works in Android simulator Genymotion (with re-natal use-figwheel -H 10.0.3.2) - Works in stock Android emulator (with re-natal use-figwheel -H 10.0.2.2) + - Figwheel REPL can be started within nREPL - You can reload app any time, no problem. - "Debug in Chrome" is not required anymore. - Optimizations :simple is used to compile "production" index.ios.js and index.android.js @@ -127,6 +128,20 @@ Start your simulator and deploy your app: $ react-native run-android ``` +#### Starting Figwheel REPL from nREPL +To start Figwheel within nREPL session: +``` +$ lein repl +``` +Then in the nREPL prompt type: +``` +user=> (figwheel-ios) +``` +Or, for Android build type: +``` +user=> (figwheel-android) +``` + ## REPL You have to reload your app, and should see the REPL coming up with the prompt.