forked from facebook/flipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This diff introduces the packages necessary for Flipper decapitated. * flipper-common: utilities & types shared between client, server, flipper-plugin * flipper-server-core: all device & client management goes in here. Basically flipper's backend * flipper-ui-core: all UI goes in here, as far as it doesn't depend on Electron * desktop: the Electron app, will load server-core and ui-core, and glue them together, providing implementations for some electron specific stuff like dialgos * flipper-server: A node process hosting flipper-server-core, that can be connected to over websockets. And probably can serve a browser version of the UI as well. * flipper-ui-browser: thin wrapper around flipper-ui-core, providing some browser specific behavior / stubs. * flipper-dump: (might remove later), but want to hack a quick and dirt flipper dump in here, as alternative way to test flipper-server-core. This diff just creates the packages, but doesn't move any code, so it can be summarized as: restoftheowl Reviewed By: nikoant Differential Revision: D30218646 fbshipit-source-id: 735598a1261a98e584f52504b5eba01ec0afa162
- Loading branch information
1 parent
99acd76
commit c3ff0ff
Showing
32 changed files
with
401 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Flipper Desktop | ||
|
||
This folder contains everything to run the Flipper 'Desktop', that is, the UI which you use to interact with the device / app under debug. | ||
|
||
### Packages provided here: | ||
|
||
* flipper-common: utilities & types shared between client, server, flipper-plugin | ||
* flipper-server-core: all device & client management goes in here. Basically flipper's backend | ||
* flipper-ui-core: all UI goes in here, as far as it doesn't depend on Electron | ||
* flipper-ui-electron: the Electron app, will load server-core and ui-core, and glue them together, providing implementations for some electron * specific stuff like dialgos | ||
* flipper-server: A node process hosting flipper-server-core, that can be connected to over websockets. And probably can serve a browser version of the UI as well. | ||
* flipper-ui-browser: thin wrapper around flipper-ui-core, providing some browser specific behavior / stubs. | ||
* flipper-dump: (might remove later), but want to hack a quick and dirt flipper dump in here, as alternative way to test flipper-server-core. | ||
* flipper-plugin: The flipper SDK used by plugins. Exposes all API's that can be used by plugins | ||
* pkg: CLI tool to manage building flipper plugins | ||
* pkg-lib | ||
* plugin-lib | ||
* babel-transformer | ||
* doctor | ||
* eslint-plugin-flipper | ||
|
||
### Packages overview | ||
|
||
``` | ||
flipper-ui-electron: | ||
- flipper-server-core (directly embedded) | ||
- flipper-ui-core | ||
- plugins (prebundled) | ||
- plugins (installable) | ||
- flipper-plugin | ||
flipper-server | ||
- flipper-server-core | ||
- flipper-ui-browser (served by webserver) | ||
- flipper-ui-core (communicates using WebSocket with server-core) | ||
- plugins (prebundled) | ||
- plugins (installable)? | ||
flipper-dump | ||
- flipper-server-core | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# flipper-common | ||
|
||
Utilities that are shared between flipper-ui, flipper-server and flipper-plugin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "flipper-common", | ||
"version": "0.0.0", | ||
"description": "Server & UI shared Flipper utilities", | ||
"repository": "facebook/flipper", | ||
"main": "lib/index.js", | ||
"flipperBundlerEntry": "src", | ||
"types": "lib/index.d.ts", | ||
"license": "MIT", | ||
"bugs": "https://github.com/facebook/flipper/issues", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
export function helloWorld() { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"references": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# flipper-dump (TBD) | ||
|
||
Stand alone Flipper command, that uses flipper-server-core to connect to apps and dump all incoming messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "flipper-dump", | ||
"private": true, | ||
"version": "0.0.0", | ||
"description": "Flipper tool to dump data from clients", | ||
"repository": "facebook/flipper", | ||
"main": "lib/index.js", | ||
"flipperBundlerEntry": "src", | ||
"types": "lib/index.d.ts", | ||
"license": "MIT", | ||
"bugs": "https://github.com/facebook/flipper/issues", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
export function helloWorld() { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../flipper-server-core" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
"references": [ | ||
{ | ||
"path": "../plugin-lib" | ||
}, | ||
{ | ||
"path": "../flipper-common" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# flipper-server-core | ||
|
||
Package that manages connections with flipper clients, queries for adb/idb clients, accepts incoming websocket / rsocket connections and takes care of certificate exchange. | ||
|
||
Used by Flipper desktop, flipper-server and flipper-dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "flipper-server-core", | ||
"private": true, | ||
"version": "0.0.0", | ||
"description": "Flipper server connection SDK", | ||
"repository": "facebook/flipper", | ||
"main": "lib/index.js", | ||
"flipperBundlerEntry": "src", | ||
"types": "lib/index.d.ts", | ||
"license": "MIT", | ||
"bugs": "https://github.com/facebook/flipper/issues", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
export function helloWorld() { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../flipper-common" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# flipper-server (TBD) | ||
|
||
Stand alone Flipper server as NodeJS process, that uses flipper-server-core for device communication and also provides a webserver to serve flipper-ui. | ||
|
||
Flipper-server can be used as background process, for example on CI servers or to power IDE plugins. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "flipper-server", | ||
"private": true, | ||
"version": "0.0.0", | ||
"description": "Standalone nodeJS based 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": {}, | ||
"devDependencies": {}, | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
export function helloWorld() { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../flipper-server-core" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# flipper-ui-browser (TBD) | ||
|
||
Flippers UI, ready to be served to a webbrowser. Typically served by flipper-server. Leverages flipper-ui-core and binds the necessary features to the browser, such as file dialogs or menu's. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "flipper-ui-browser", | ||
"private": true, | ||
"version": "0.0.0", | ||
"description": "Flipper's UI, packaged for the browser", | ||
"repository": "facebook/flipper", | ||
"main": "lib/index.js", | ||
"flipperBundlerEntry": "src", | ||
"types": "lib/index.d.ts", | ||
"license": "MIT", | ||
"bugs": "https://github.com/facebook/flipper/issues", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
export function helloWorld() { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../flipper-ui-core" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# flipper-ui-core (TBD) | ||
|
||
Flipper's UI, agnostic of Electron vs Browser. |
Oops, something went wrong.