Skip to content

refactor: pluginctl v0.1.5-0.20250814142442-19c417d53e1d#186

Open
fmartingr wants to merge 2 commits intomasterfrom
refactor/pluginctl
Open

refactor: pluginctl v0.1.5-0.20250814142442-19c417d53e1d#186
fmartingr wants to merge 2 commits intomasterfrom
refactor/pluginctl

Conversation

@fmartingr
Copy link
Copy Markdown
Contributor

@fmartingr fmartingr commented Aug 14, 2025

Summary

Example PR on how to migrate a plugin to pluginctl.

  1. Add webapp.config.js and babel.config.js to the manifest props.pluginctl.ignore_assets.
  2. Remove build/setup.mk, build/manifest & build/pluginctl.
  3. Run pluginctl updateassets.

Migration guide: mattermost/pluginctl#2

Closes: #180

@fmartingr fmartingr self-assigned this Aug 14, 2025
@fmartingr fmartingr requested a review from hanzei as a code owner August 14, 2025 14:39
@fmartingr
Copy link
Copy Markdown
Contributor Author

fmartingr commented Aug 14, 2025

@hanzei I've followed the manifest apply approach with pluginctl because that how it was done in the starter template, but this plugin followed another approach (that I liked more, tbh).

Unsure which one is the "appropriate one". Do you have any insight on that?

7e22e69

Copy link
Copy Markdown
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit hesitant to migrate this repo over until the discussion about pluginctl is resolved. I'm blocking until then.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes back to the changes in mattermost/mattermost-plugin-starter-template#192. With that PR, we auto-generate the manifest every time we build the bundle, because the version field now depends on the git history. The demo plugin never adopted the new pattern.

The changes in this PR are fine.

"homepage_url": "https://github.com/mattermost/mattermost-plugin-demo",
"support_url": "https://github.com/mattermost/mattermost-plugin-demo/issues",
"icon_path": "assets/icon.svg",
"version": "0.10.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove that field now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hanzei hanzei added the Work In Progress Not yet ready for review label Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Work In Progress Not yet ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants