Flipper: Question: How to install plugin via zip/tar.gz?

Created on 1 Apr 2020  ยท  4Comments  ยท  Source: facebook/flipper

I wanted to use drag&drop installation of plugins (without need to publish on NPM), to distribute internal plugins. But somehow I'm hitting some issue.

The first was, that it was not very clear what is the format of plugin. Later I found out this is correct shape of archive we need to provide:
image
After restarting Flipper I check ~/.flipper/thirdparty/ and can see my newly added plugin, but it doesn't show in the list Plugin Status, even if I invoke the addPlugin in my app.


Edit
So actually those plugins (as compared to locally linked) will show under Install plugins. Still can't the plugin though.


Update 2
So found out when reset local dev, it will throw this error:
```
โŒ Plugin flipper-plugin-test-feature is ignored, because it could not be compiled.
ReferenceError: SHA-1 for file /Users/anonymous/Git/flipper/desktop/node_modules/metro/src/lib/polyfills/require.js (/Users/anonymous/Git/flipper/desktop/node_modules/metro/src/lib/polyfills/require.js) is not computed

Most helpful comment

Also I'm going to update docs on plugin format soon. Installation from files is kinda "early access" feature for now :)

All 4 comments

@nikoant Can you shed some light here? :)

Sorry, this was broken for Flipper running in dev mode (yarn start). I fixed this just recently in this commit https://github.com/facebook/flipper/commit/0711617c63efe15e4a4078e6ee13693899dadf87.

Also I'm going to update docs on plugin format soon. Installation from files is kinda "early access" feature for now :)

Sorry for delay, but I finally updated the docs describing new plugin distribution format. We also published new CLI tool called "flipper-pkg" which can help in Flipper desktop plugin packaging:
Docs - https://fbflipper.com/docs/extending/js-setup
Tool - https://www.npmjs.com/package/flipper-pkg

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abaker picture abaker  ยท  3Comments

usrbowe picture usrbowe  ยท  3Comments

aleclarson picture aleclarson  ยท  3Comments

paschaldev picture paschaldev  ยท  3Comments

justintuchek picture justintuchek  ยท  3Comments