mattermost / mattermost-plugin-starter-template

Build scripts and templates for writing Mattermost plugins.
https://developers.mattermost.com/extend/plugins/
Apache License 2.0
128 stars 120 forks source link

Replace mattermost-webapp dependency with mattermost-redux #190

Closed mickmister closed 10 months ago

mickmister commented 10 months ago

Summary

Having mattermost-webapp as a dependency makes it so we check out the whole repo when we npm install. This makes the install take longer and has caused issues in some environments. The version of mattermost-redux generally contains everything plugins need that is currently available in mattermost-webapp/pacckages/mattermost-redux. Until we have a more dedicated package for plugins, I think importing mattermost-redux works well.

Note that changing the import in the starter template won't break any plugins that are using the mattermost-webapp dependency.

This is coming up due to a developer running into issues with the mattermost-webapp dependency here https://community.mattermost.com/core/pl/kaa1swasrfbgffbcmc571mnzqh

mickmister commented 10 months ago

/update-branch