From cfdd04f2d27a57382ed7a65e991ca9af70b3d7ce Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 29 Apr 2016 04:13:30 -0700 Subject: [PATCH] Launch the packager with `react-native run-android` on Windows Summary: Adds support for launching the packager in a new window on Windows. **Test plan (required)** Tested that the packager is launched in a completely independent process. This means that exiting the `react-native run-android` command should not close the packager window and it should exit properly when completed even if the packager window is still opened. Pretty much made sure it behaves exactly like on mac. Also tested that an error in the packager will not close the window immediately to show the error stack trace. Closes https://github.com/facebook/react-native/pull/7129 Differential Revision: D3240628 Pulled By: mkonicek fb-gh-sync-id: 007582250536481d2b2376f9a201f8f415fc1080 fbshipit-source-id: 007582250536481d2b2376f9a201f8f415fc1080 --- launchPackager.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 launchPackager.bat diff --git a/launchPackager.bat b/launchPackager.bat new file mode 100644 index 00000000..b0c395b9 --- /dev/null +++ b/launchPackager.bat @@ -0,0 +1,12 @@ +:: Copyright (c) 2015-present, Facebook, Inc. +:: All rights reserved. +:: +:: This source code is licensed under the BSD-style license found in the +:: LICENSE file in the root directory of this source tree. An additional grant +:: of patent rights can be found in the PATENTS file in the same directory. + +@echo off +title React Packager +node "%~dp0..\local-cli\cli.js" start +pause +exit