Docs on how to include fb-only parts into open-sourced plugins

Summary: Added docs on how to include fb-only parts into open-sourced plugins

Reviewed By: mweststrate

Differential Revision: D27678276

fbshipit-source-id: e0c3de8ed57a7d25f291e8e6ac15ed32812a0cbc
This commit is contained in:
Anton Nikolaev
2021-04-09 08:55:51 -07:00
committed by Facebook GitHub Bot
parent 6bd3eee0ee
commit 5b0f7e8757

View File

@@ -4,6 +4,7 @@ title: Plugin structure
--- ---
import FbNpmDeps from '../fb/adding-npm-dependencies-0.mdx' import FbNpmDeps from '../fb/adding-npm-dependencies-0.mdx'
import FbOnlyParts from '../fb/fb-only-parts-in-os-plugins.mdx'
Flipper Desktop plugins have a rigid structure. We recommend to scaffold any new plugin using our scaffolding tooling. Flipper Desktop plugins have a rigid structure. We recommend to scaffold any new plugin using our scaffolding tooling.
@@ -244,3 +245,11 @@ The main difference of version 2 is that plugins are transpiled and bundled befo
The easiest way for migration is using of command `flipper-pkg migrate`. It will automatically migrate your plugin definition to the latest version. The easiest way for migration is using of command `flipper-pkg migrate`. It will automatically migrate your plugin definition to the latest version.
</OssOnly> </OssOnly>
<FbInternalOnly>
## Adding fb-only code to open-sourced plugins
<FbOnlyParts />
</FbInternalOnly>