update plugin's package.json

Summary:
For all plugins:
- move static fields `title`, `id` and `icon` to `package.json`
- adds "bugs" field for all plugins containing links to support groups/oncalls.

Reviewed By: priteshrnandgaonkar

Differential Revision: D13417286

fbshipit-source-id: 7b341176915f3ed7b473b95c1d879f21d7d634ef
This commit is contained in:
Daniel Büchele
2018-12-18 10:12:43 -08:00
committed by Facebook Github Bot
parent c9b982b182
commit 1fc73ad2fb
19 changed files with 62 additions and 49 deletions

View File

@@ -29,10 +29,6 @@ const Container = styled(FlexColumn)({
});
export default class extends FlipperPlugin<*, State, PersistedState> {
static title = 'Example';
static id = 'Example';
static icon = 'apps';
static defaultPersistedState = {
currentNotificationIds: [],
receivedMessage: null,

View File

@@ -1,6 +1,12 @@
{
"name": "flipper-plugin-sample",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
"name": "Example",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"title": "Example Plugin",
"icon": "apps",
"bugs": {
"email": "oncall+flipper@xmail.facebook.com",
"url": "https://fb.workplace.com/groups/230455004101832/"
}
}