flipper-plugin-*
Summary: rename plugin packages from `sonar-plugin-*` to `flipper-plugin-*`. Reviewed By: passy Differential Revision: D9851211 fbshipit-source-id: bdac568ede0a4a9308138a6c3d60728bb6195a72
This commit is contained in:
committed by
Facebook Github Bot
parent
66e77075be
commit
3bea3c88e6
@@ -6,11 +6,11 @@ sidebar_label: JavaScript Setup
|
||||
|
||||
## Creating the plugin UI
|
||||
|
||||
To create the desktop part of your plugin, initiate a new JavaScript project using `yarn init` and make sure your package name starts with `sonar-plugin-` and a file called `index.js`, which is the entry point to your plugin. A sample `package.json`-file could look like this:
|
||||
To create the desktop part of your plugin, initiate a new JavaScript project using `yarn init` and make sure your package name starts with `flipper-plugin-` and a file called `index.js`, which is the entry point to your plugin. A sample `package.json`-file could look like this:
|
||||
|
||||
```
|
||||
{
|
||||
"name": "sonar-plugin-myplugin",
|
||||
"name": "flipper-plugin-myplugin",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "sonar-plugin-layout",
|
||||
"name": "flipper-plugin-layout",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "sonar-plugin-leakcanary",
|
||||
"name": "flipper-plugin-leakcanary",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "sonar-plugin-network",
|
||||
"name": "flipper-plugin-network",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "sonar-plugin-sandbox",
|
||||
"name": "flipper-plugin-sandbox",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "sonar-plugin-sharedpreferences",
|
||||
"name": "flipper-plugin-sharedpreferences",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -90,7 +90,7 @@ function entryPointForPluginFolder(pluginPath) {
|
||||
return fs
|
||||
.readdirSync(pluginPath)
|
||||
.filter(name =>
|
||||
/*name.startsWith('sonar-plugin') && */ fs
|
||||
/*name.startsWith('flipper-plugin') && */ fs
|
||||
.lstatSync(path.join(pluginPath, name))
|
||||
.isDirectory(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user