Summary:
Hoping that this will fix our docs build.
Note that I also had to fix a syntax error in `extending/loading-custom-plugins.mdx` that
broke the build with:
```
SyntaxError: /Users/realpassy/fbsource/xplat/sonar/docs/extending/loading-custom-plugins.mdx: Expected corresponding JSX closing tag for <admonition>. (10:10)
8 | <FbInternalOnly>
9 | <admonition {...{"type":"caution"}}><p parentName="admonition">{`Within Meta, plugins sources are stored and loaded from `}<inlineCode parentName="p">{`~/fbsource/xplat/sonar/desktop/plugins`}</inlineCode>{`, in which case no further configuration is needed.`}</p><p parentName="admonition">{`If your team uses Flipper plugins that are stored outside `}<inlineCode parentName="p">{`fbsource`}</inlineCode>{`, please follow your team specific instructions.
> 10 | ::::`}</p></FbInternalOnly><p parentName="admonition">{`Flipper loads and runs plugins it finds in a configurable location. The paths searched are specified in `}<inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`. These `}<inlineCode parentName="p">{`pluginPaths`}</inlineCode>{` should contain one folder for each of the plugins it stores.`}</p><p parentName="admonition">{`An example config setting and plugin file structure is shown below:`}</p><p parentName="admonition"><inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`:`}</p><pre parentName="admonition"><code parentName="pre" {...{"className":"language-bash"}}>{`{
| ^
11 | ...,
12 | "pluginPaths": ["~/flipper-plugins"]
13 | }
client (webpack 5.74.0) compiled with 1 error
```
Reviewed By: ivanmisuno
Differential Revision: D43767006
fbshipit-source-id: 64288d63c305bc9a9c9b797110889a703c7dcfee
48 lines
1.7 KiB
JSON
48 lines
1.7 KiB
JSON
{
|
|
"scripts": {
|
|
"copy-schema": "fcli ensure static/schemas/plugin-package && fcli copy ../desktop/pkg/schemas/plugin-package-v2.json static/schemas/plugin-package/v2.json -o",
|
|
"start": "yarn copy-schema && yarn generate-plugin-docs && yarn build:style-guide && docusaurus start --port 3001",
|
|
"build": "yarn copy-schema && yarn generate-plugin-docs && yarn build:style-guide && docusaurus build",
|
|
"publish-gh-pages": "docusaurus deploy",
|
|
"write-translations": "docusaurus write-translations",
|
|
"version": "docusaurus version",
|
|
"rename-version": "docusaurus rename-version",
|
|
"generate-plugin-docs": "ts-node ./generate-plugin-docs.ts",
|
|
"build:style-guide": "fcli remove flipper-themes && fcli copy ../desktop/themes flipper-themes && lessc --js flipper-themes/light.less static/css/style-guide.css"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/icons": "^4.7.0",
|
|
"@docusaurus/core": "2.3.1",
|
|
"@docusaurus/plugin-client-redirects": "2.3.1",
|
|
"@docusaurus/preset-classic": "2.3.1",
|
|
"@emotion/css": "^11.10.6",
|
|
"@emotion/styled": "^11.10.6",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"antd": "^4.23.4",
|
|
"docusaurus-plugin-internaldocs-fb": "1.9.1",
|
|
"file-cli": "^1.2.0",
|
|
"flipper-plugin": "^0.183.0",
|
|
"fs-extra": "^11.1.0",
|
|
"less": "^4.1.3",
|
|
"mermaid": "^8.13.4",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-element-to-jsx-string": "^14.3.4",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^4.9.5"
|
|
},
|
|
"dependencies": {},
|
|
"resolutions": {
|
|
"kind-of": "6.0.3",
|
|
"chokidar": "^3.1.5",
|
|
"dns-packet": "^5.2.2",
|
|
"browserslist": "^4.16.5",
|
|
"ws": "8.2.0",
|
|
"trim": "1.0.1",
|
|
"immer": "^9.0.6",
|
|
"shelljs": "^0.8.5",
|
|
"ansi-html": "0.0.8"
|
|
},
|
|
"license": "MIT"
|
|
}
|