Summary: This diff updates plugin scaffolding by using Sandy and closely following the internal Scarf templates (see D24949452, D24949452) By using `flipper-plugin`, it is now also possible to write unit tests for a plugin, and the default infra for that is generated (babel / jest) For now there is still a dependency on `flipper` to support fancy components not yet available in Sandy, this will be updated in the future: T79632585 Changelog: `flipper-pkg init` now uses the new Sandy plugin infrastructure ant Ant.design component system Reviewed By: nikoant Differential Revision: D24950080 fbshipit-source-id: afc5e7ac728b20cb84fdbbdcb76cd45968736c01
39 lines
958 B
Plaintext
39 lines
958 B
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"
|
|
},
|
|
"peerDependencies": {
|
|
"flipper": "latest",
|
|
"flipper-plugin": "latest",
|
|
"antd": "latest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-react": "latest",
|
|
"@babel/preset-typescript": "latest",
|
|
"@types/jest": "latest",
|
|
"@types/react": "latest",
|
|
"@types/react-dom": "latest",
|
|
"antd": "latest",
|
|
"flipper": "latest",
|
|
"flipper-plugin": "latest",
|
|
"flipper-pkg": "latest",
|
|
"jest": "latest"
|
|
}
|
|
}
|