Files
flipper/desktop/pkg/templates/plugin/package.json.template
Michel Weststrate 2f15ef883d Improve OSS plugin template
Summary:
Based https://github.com/facebook/flipper/issues/1866 and running `npx flipper-plugin init` locally. Doesn't address the original issue

Fixes #1866

Reviewed By: passy

Differential Revision: D26147089

fbshipit-source-id: 608dc92c5ccc741b6e760ea5a5034f9444e951b7
2021-02-01 02:28:34 -08:00

41 lines
1.0 KiB
Plaintext

{
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "{{package_name}}",
"id": "{{id}}",
"version": "1.0.0",
"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"
}
}