MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / server

Function server

local-cli/server/server.js:17–45  ·  view source on GitHub ↗

* Starts the React Native Packager Server.

(argv, config, args)

Source from the content-addressed store, hash-verified

15 * Starts the React Native Packager Server.
16 */
17function server(argv, config, args) {
18 args.projectRoots = args.projectRoots.concat(args.root);
19
20 const startedCallback = logReporter => {
21 logReporter.update({
22 type: 'initialize_packager_started',
23 port: args.port,
24 projectRoots: args.projectRoots,
25 });
26
27 process.on('uncaughtException', error => {
28 logReporter.update({
29 type: 'initialize_packager_failed',
30 port: args.port,
31 error,
32 });
33
34 process.exit(11);
35 });
36 };
37
38 const readyCallback = logReporter => {
39 logReporter.update({
40 type: 'initialize_packager_done',
41 });
42 };
43
44 runServer(args, config, startedCallback, readyCallback);
45}
46
47module.exports = {
48 name: 'start',

Callers

nothing calls this directly

Calls 1

runServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…