BadIdeaFactory / statnews-buildfire

Custom Buildfire Plugins for STAT News
Apache License 2.0
0 stars 0 forks source link

Upload the plugins to BuildFire #11

Closed reefdog closed 4 years ago

reefdog commented 4 years ago

This is a sub-task of #10.

I need to upload the plugins to my personal BuildFire development app to sort out any bugs/issues with doing so. Reference: https://learn.buildfire.com/en/articles/488858-how-to-upload-and-update-a-plugin-to-your-developer-portal

reefdog commented 4 years ago

First issue already discovered: simply zipping the SSO Plugin directory (from #5) and uploading that triggers this error:

Upload unsuccessful. Incorrect zip file structure.

The current file structure is:

plugin.json
widget/index.html
control/settings/index.html

I got this message regardless of whether I zipped those files directly, or if I zipped their enclosing ssoPlugin/ directory.

I'm going to watch the Creating Your First Plugin video to learn what I can from it. (Already noted: you can build plugins with Webpack, which will be very useful for #8.)

reefdog commented 4 years ago

Figured it out. A resources/ directory with icon.png and image.png are required. Added those files (will add to the PRs as well) and uploaded, and it worked! 🎉