CH
chewxy/mattermost-plugin-tonitter
A mattermost plugin for replacing links to x.com with links to xcancel.com
mattermost-plugin-tonitter
A mattermost plugin for replacing links to x.com with links to xcancel.com
To Compile This
- Go to the
webappdirectory - Ensure you have the necessary dependencies installed:
npm install --save-dev @babel/core @babel/preset-env @babel/preset-react babel-loader webpack webpack-cli - Ensure that
webapp/distexists (mkdir distinwebapp) - Generate a minified bundle:
./node_modules/.bin/webpack --mode=production - Ensure that the directory
com.mattermost.tonitterexists (mkdir -p com.mattermost.tonitterif it doesn't exist) - Copy the main.js file that was generated in step 4 into the
com.mattermost.tonitterdirectory -cp -r dist/main.js com.mattermost.tonitter/ - Copy the manifest file (plugin.json) -
cp plugin.json com.mattermost.tonitter - Tar it up -
tar -czvf plugin.tar.gz com.mattermost.tonitter
Refer to https://developers.mattermost.com/integrate/plugins/components/webapp/hello-world/ for more info