From de6c2c1c2b7ceb9d80774dc78718b034325136c1 Mon Sep 17 00:00:00 2001 From: Jort van Driel <10116429+JortvD@users.noreply.github.com> Date: Fri, 18 Dec 2020 16:38:47 +0100 Subject: [PATCH] Add the example plugin --- daemon/linux/index.js | 5 +++++ daemon/win/index.js | 5 +++++ panel/index.js | 5 +++++ plugin.json | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 daemon/linux/index.js create mode 100644 daemon/win/index.js create mode 100644 panel/index.js create mode 100644 plugin.json diff --git a/daemon/linux/index.js b/daemon/linux/index.js new file mode 100644 index 0000000..e960414 --- /dev/null +++ b/daemon/linux/index.js @@ -0,0 +1,5 @@ +module.exports = { + load: () => { + console.log("A daemon plugin has been loaded on linux."); + } +}; \ No newline at end of file diff --git a/daemon/win/index.js b/daemon/win/index.js new file mode 100644 index 0000000..b890545 --- /dev/null +++ b/daemon/win/index.js @@ -0,0 +1,5 @@ +module.exports = { + load: () => { + console.log("A daemon plugin has been loaded on windows"); + } +}; \ No newline at end of file diff --git a/panel/index.js b/panel/index.js new file mode 100644 index 0000000..5e9189a --- /dev/null +++ b/panel/index.js @@ -0,0 +1,5 @@ +module.exports = { + load: () => { + console.log("A panel plugin has been loaded"); + } +}; \ No newline at end of file diff --git a/plugin.json b/plugin.json new file mode 100644 index 0000000..5e4fa40 --- /dev/null +++ b/plugin.json @@ -0,0 +1,39 @@ +{ + "name": "example-plugin", + "author": "ijo-sm", + "version": "1.0.0", + "panel": { + "dependencies": [], + "index": "./panel/index.js", + "include": "./panel/*", + "env": { + "version": ">=0.5.7" + } + }, + "daemon": [ + { + "dependencies": [], + "index": "./daemon/win/index.js", + "include": "./daemon/*", + "env": { + "version": { + "stable": ">=0.8.3", + "unstable": ">0.5.2" + }, + "os": "win32" + } + }, + { + "dependencies": [], + "index": "./daemon/linux/index.js", + "include": "./daemon/*", + "env": { + "version": { + "stable": ">=0.8.3", + "unstable": ">0.5.2" + }, + "os": "linux" + } + } + ] +} \ No newline at end of file