Mattermost boards plugins is an open source, multilingual, self-hosted project management tool that's an alternative to Trello, Notion, and Asana.
Access the latest releases of the mattermost boards plugin by downloading the mattermost-plugin-focalboard.tar.gz file from the releases in this repository: https://github.com/mattermost/mattermost-plugin-boards/releases. After downloading and installing the plugin in the System Console, select the menu in the top left corner and select Boards.
Clone mattermost into sibling directory.
You also want to have the environment variable MM_DEBUG"true" set, otherwise the plugin
will be compiled for Linux, Windows, and Darwin ARM64 and x64 architecture every single time. Setting
the MM_DEBUG to true makes the plugin compile and build only for the OS and architecture
you are building on.
In your Mattermost configuration file, ensure that PluginSettings.EnableUploads is set to true, and FileSettings.MaxFileSize is
set to a large enough value to accept the plugin bundle (eg 256000000).
cd ./webapp
npm installRun the following command in the plugin repository to prepare a compiled, distributable plugin ZIP file:
make distAfter a successful build, a .tar.gz file in the /dist folder will be created which can be uploaded to Mattermost. To avoid having to manually install your plugin, deploy your plugin using one of the following options.
Set the following environment variables to true before running make dist-
- MM_DEBUG
If your Mattermost server is running locally, you can enable local mode to streamline deploying your plugin. Edit your server configuration as follows:
{
"ServiceSettings": {
...
"EnableLocalMode": true,
"LocalModeSocketLocation": "/var/tmp/mattermost_local.socket"
}
}
and then deploy your plugin:
make deployIf developing a plugin with a web app, watch for changes and deploy those automatically:
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
make watch-pluginTo trigger a release, follow these steps:
-
For Patch Release: Run the following command:
make patchThis will release a patch change.
-
For Minor Release: Run the following command:
make minorThis will release a minor change.
-
For Major Release: Run the following command:
make majorThis will release a major change.
-
For Patch Release Candidate (RC): Run the following command:
make patch-rcThis will release a patch release candidate.
-
For Minor Release Candidate (RC): Run the following command:
make minor-rcThis will release a minor release candidate.
-
For Major Release Candidate (RC): Run the following command:
make major-rcThis will release a major release candidate.
Before checking in commits, run make ci, which is similar to the .gitlab-ci.yml workflow and includes:
- Server unit tests:
make server-test - Web app ESLint:
cd webapp; npm run check - Web app unit tests:
cd webapp; npm run test