Files
flipper/desktop/pkg/templates/plugin/package.json.template
Michel Weststrate 49b4022228 added tests for generated template files
Summary:
Created a test that snapshots the generated files, so that we can capture accidental regressions when generating files.

Also made the package id to package name a bit more robust

Reviewed By: jknoxville

Differential Revision: D21619633

fbshipit-source-id: 88ffb127e050d840df9ccd4b15ba29a71f341975
2020-05-19 05:33:35 -07:00

30 lines
700 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"
},
"peerDependencies": {
"flipper": "latest"
},
"devDependencies": {
"@types/react": "latest",
"@types/react-dom": "latest",
"flipper": "latest",
"flipper-pkg": "latest"
}
}