Add flipper-server-companion

Summary: Flipper Server Companion starts headless plugins and exposes them over the wire

Reviewed By: passy

Differential Revision: D36098170

fbshipit-source-id: 3b1b077d1fa4adca5c340ad4475b80b229586e1b
This commit is contained in:
Andrey Goncharov
2022-05-10 05:13:24 -07:00
committed by Facebook GitHub Bot
parent d795117910
commit 5d346b4991
8 changed files with 69 additions and 11 deletions

View File

@@ -15,5 +15,6 @@ static/index.js
static/defaultPlugins/*
app/src/defaultPlugins/index.tsx
flipper-server-core/src/defaultPlugins/index.tsx
flipper-server-companion/src/defaultPlugins/index.tsx
generated
flipper-server/static

1
desktop/.gitignore vendored
View File

@@ -7,6 +7,7 @@ node_modules/
/app/src/defaultPlugins/index.tsx
/flipper-ui-browser/src/defaultPlugins/index.tsx
/flipper-server-core/src/defaultPlugins/index.tsx
/flipper-server-companion/src/defaultPlugins/index.tsx
/coverage
.env
tsc-error.log

View File

@@ -0,0 +1,3 @@
# flipper-server-companion (TBD)
Flipper Server Companion runs Flipper plugins in Flipper Server context.

View File

@@ -0,0 +1,35 @@
{
"name": "flipper-server-companion",
"private": true,
"version": "0.0.0",
"description": "Runs Flipper plugins on Flipper Server",
"repository": "facebook/flipper",
"main": "lib/index.js",
"flipperBundlerEntry": "src",
"types": "lib/index.d.ts",
"license": "MIT",
"bugs": "https://github.com/facebook/flipper/issues",
"dependencies": {
"flipper-common": "0.0.0",
"flipper-frontend-core": "0.0.0",
"flipper-plugin": "0.0.0",
"immer": "^9.0.12"
},
"devDependencies": {
"@types/node": "^17.0.29"
},
"peerDependencies": {},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",
"build": "tsc -b",
"prepack": "yarn reset && yarn build"
},
"files": [
"lib/**/*"
],
"homepage": "https://github.com/facebook/flipper",
"keywords": [
"Flipper"
],
"author": "Facebook, Inc"
}

View File

@@ -0,0 +1,19 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
"types": ["node", "../types/flipperGlobals"]
},
"references": [
{
"path": "../flipper-common"
},
{
"path": "../flipper-frontend-core"
},
{
"path": "../flipper-plugin"
}
]
}

View File

@@ -173,6 +173,7 @@
"flipper-common",
"flipper-frontend-core",
"flipper-plugin",
"flipper-server-companion",
"flipper-server-core",
"flipper-ui-core",
"flipper-ui-browser",

View File

@@ -21,6 +21,9 @@
{
"path": "../flipper-server"
},
{
"path": "../flipper-server-companion"
},
{
"path": "../flipper-server-core"
},

View File

@@ -2769,21 +2769,16 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.0.tgz#4b95f2327bacd1ef8f08d8ceda193039c5d7f52e"
integrity sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==
"@types/node@>=10.0.0":
version "17.0.21"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644"
integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==
"@types/node@^12.0.12":
version "12.20.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.7.tgz#1cb61fd0c85cb87e728c43107b5fd82b69bc9ef8"
integrity sha512-gWL8VUkg8VRaCAUgG9WmhefMqHmMblxe2rVpMF86nZY/+ZysU+BkAp+3cz03AixWDSSz0ks5WX59yAhv/cDwFA==
"@types/node@^17.0.31":
"@types/node@>=10.0.0", "@types/node@^17.0.29", "@types/node@^17.0.31":
version "17.0.31"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.31.tgz#a5bb84ecfa27eec5e1c802c6bbf8139bdb163a5d"
integrity sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==
"@types/node@^12.0.12":
version "12.20.50"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.50.tgz#14ba5198f1754ffd0472a2f84ab433b45ee0b65e"
integrity sha512-+9axpWx2b2JCVovr7Ilgt96uc6C1zBKOQMpGtRbWT9IoR/8ue32GGMfGA4woP8QyP2gBs6GQWEVM3tCybGCxDA==
"@types/normalize-package-data@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"