microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4677921ce087214eb6edd7fb26bd1938637970be

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/utils/reactNativeCommandHelper.ts

13lines · modeblame

9cf5eef2leolee10 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
7b341316Jimmy Thomson10 years ago4import * as child_process from "child_process";
9cf5eef2leolee10 years ago5
6export class ReactNativeCommandHelper {
7b341316Jimmy Thomson10 years ago7private static CMD_NAME = "react-native";
8ba55f4cJimmy Thomson10 years ago8
3fde2079Jimmy Thomson10 years ago9public static executeReactNativeCommand(projectRoot: string, command: string): child_process.ChildProcess {
10// TODO: Update this to do more useful error checking
11return child_process.spawn(ReactNativeCommandHelper.CMD_NAME, [command], {cwd: projectRoot});
9cf5eef2leolee10 years ago12}
13}