Extract plugin version from manifest

This commit is contained in:
Hanzei 2018-08-24 23:07:03 +02:00
parent fac781a229
commit 8cb9ff92df
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
6 changed files with 28 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import PluginId from './plugin_id';
import Manifest from './manifest';
export default class Plugin {
// eslint-disable-next-line no-unused-vars
@ -7,4 +7,4 @@ export default class Plugin {
}
}
window.registerPlugin(PluginId, new Plugin());
window.registerPlugin(Manifest.PluginId, new Plugin());

4
webapp/src/manifest.js Normal file
View file

@ -0,0 +1,4 @@
export default {
PluginId: 'com.mattermost.sample-plugin',
PluginVersion: '0.0.1',
};

View file

@ -1 +0,0 @@
export default 'com.mattermost.sample-plugin';