Summary: Added option to bootstrap device plugin in "flipper-pkg". Changelog: "flipper-pkg init" can now be used to bootstrap device plugins Reviewed By: mweststrate Differential Revision: D26389429 fbshipit-source-id: 90773011bd50289004cd747111e1787402840922
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
{
|
|
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
|
|
"name": "{{package_name}}",
|
|
"id": "{{id}}",
|
|
"version": "1.0.0",
|
|
"pluginType": "device",
|
|
"supportedDevices": {{supported_devices}},
|
|
"main": "dist/bundle.js",
|
|
"flipperBundlerEntry": "src/index.tsx",
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"flipper-plugin"
|
|
],
|
|
"icon": "apps",
|
|
"title": "{{title}}",
|
|
"scripts": {
|
|
"lint": "flipper-pkg lint",
|
|
"prepack": "flipper-pkg lint && flipper-pkg bundle",
|
|
"build": "flipper-pkg bundle",
|
|
"watch": "flipper-pkg bundle --watch",
|
|
"test": "jest --no-watchman"
|
|
},
|
|
"peerDependencies": {
|
|
"flipper": "latest",
|
|
"flipper-plugin": "latest",
|
|
"antd": "latest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-react": "latest",
|
|
"@babel/preset-typescript": "latest",
|
|
"@testing-library/react": "latest",
|
|
"@types/jest": "latest",
|
|
"@types/react": "latest",
|
|
"@types/react-dom": "latest",
|
|
"antd": "latest",
|
|
"flipper": "latest",
|
|
"flipper-plugin": "latest",
|
|
"flipper-pkg": "latest",
|
|
"jest": "latest",
|
|
"typescript": "latest"
|
|
}
|
|
}
|