Metro Bundler Launcher is a GTK4-based application designed to manage the Metro Bundler for React Native projects.
This requires the minimum React Native development environment to be set up.
bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
Get the latest release from release page. Open the installer dmg and move the app to Applications folder. Right click and open the app on first launch to bypass security settings.
-
working directory
: Input a project directory path in the text field labeled "project root". -
Enviromental Variables
: Input any environment variables in the text field labeled "env vars" such as "ENV=development". These will be appended to the metro command. -
Port
: Input a port number in the text field labeled "port". This will be used to start the metro bundler on the specified port. -
Debugger
: Enable the hermes debugger by checking the checkbox labeled "Enable Hermes Debugger". -
Status Light
: The status light will change color based on the status of the metro bundler. Green indicates the metro bundler is running, red indicates the metro bundler is not running on the specified port. -
Buttons
:Play
: Start the metro bundler.Stop
: Stop the metro bundler.Restart
: Restart the metro bundler.Dark Mode
: (lightbulb) Toggle dark mode.
Options are stored in the ~/Library/Application Support/MetroBundlerLauncher
directory.
- GTK4
- GCC
- macOS (for setup script)
-
Clone the repository:
git clone https://github.com/savaughn/metro_launcher.git cd metro_launcher
-
Install dependencies:
./setup_macos.sh
-
Build the project:
make
-
Run the application:
make run
The Makefile
includes targets for building and running the project:
make
: Builds the project.make run
: Runs the built executable.make clean
: Cleans up the build artifacts.
- Fork and PR, please.
This project is licensed under the MIT License.