Update tutorial to reflect changes in plugin packaging format
Summary: Tutorial updated to reflect changes in plugin packaging format Reviewed By: passy Differential Revision: D21161268 fbshipit-source-id: b7c6d272be8dd56b76a0af87acdc347df4216f6c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e165c2cd95
commit
fe09dae237
@@ -11,21 +11,31 @@ two rules:
|
||||
- The package name should to start with "flipper-plugin-". This makes
|
||||
it easier to see what the purpose of the package is.
|
||||
- The package must include the keyword "flipper-plugin".
|
||||
- Source code of the plugin must be bundled by "flipper-pkg" tool.
|
||||
|
||||
A valid example `package.json` could look like this:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "flipper-plugin-example",
|
||||
"version": "1.0.0",
|
||||
"description": "An example for a Flipper plugin",
|
||||
"main": "index.tsx",
|
||||
"name": "flipper-plugin-sea-mammals",
|
||||
"id": "sea-mammals",
|
||||
"specVersion": 2,
|
||||
"version": "2.0.0",
|
||||
"main": "dist/bundle.js",
|
||||
"flipperBundlerEntry": "src/index.tsx",
|
||||
"license": "MIT",
|
||||
"keywords": ["flipper-plugin"],
|
||||
"title": "Example Plugin",
|
||||
"icon": "apps",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/flipper/issues/"
|
||||
"title": "Sea Mammals",
|
||||
"category": "Example Plugin",
|
||||
"scripts": {
|
||||
"prepack": "flipper-pkg bundle"
|
||||
},
|
||||
"dependencies": {
|
||||
"flipper": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"flipper-pkg": "latest"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user