You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add standalone Reactotron server and update dependencies
- Introduced a bundled standalone Reactotron server that starts automatically with the macOS app.
- Added a new script to bundle the server code using esbuild.
- Updated package.json to include esbuild as a dependency.
- Enhanced README with instructions for running the server and details about the embedded server functionality.
- Updated Podfile.lock to reflect changes in dependencies.
- Minor adjustments to existing scripts and configurations for better integration.
Copy file name to clipboardExpand all lines: README.md
+39-6Lines changed: 39 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,13 @@ npm install
35
35
npm run pod
36
36
npm run start
37
37
npm run macos
38
-
# for release builds
38
+
# for release builds (automatically bundles the server)
39
39
npm run macos-release
40
40
```
41
41
42
-
### Windows Development
42
+
**Note:** The Reactotron server is now embedded in the macOS app and starts automatically on port 9292. No need to run a separate server process!
43
+
44
+
### Windows Development
43
45
44
46
#### System Requirements
45
47
@@ -69,14 +71,26 @@ Both platforms use unified commands for native module development:
69
71
70
72
See [Making a TurboModule](./docs/Making-a-TurboModule.md) for detailed native development instructions.
71
73
74
+
### Server Bundle
75
+
76
+
If you modify the standalone server code (`standalone-server.js`), rebuild the bundle:
77
+
78
+
```sh
79
+
npm run bundle-server
80
+
```
81
+
82
+
The bundle is automatically generated during release builds (`npm run macos-release`).
83
+
72
84
## Enabling Reactotron in your app
73
85
74
86
> [!NOTE]
75
87
> We don't have a simple way to integrate the new Reactotron-macOS into your app yet, but that will be coming at some point. This assumes you've cloned down Reactotron-macOS.
76
88
77
-
1. From the root of Reactotron-macOS, start the standalone relay server:
0 commit comments