Convert plugins to node packages

Setup package.json for the plugins and add them back to tests now that
they are compatible again.
This commit is contained in:
Hornwitser committed 2020-10-21 21:37:26 +02:00
1 parent f06d3509e6
commit b2408d54ec
12 files changed
+82 -7

No files matched your search

-1
View File
@@ -6,7 +6,6 @@ module.exports = {
name: "global_chat",
title: "Global Chat",
description: "Forwards chat between instances.",
version: "2.0.0-alpha",
instanceEntrypoint: "instance",
controlEntrypoint: "control",
+18
View File
@@ -0,0 +1,18 @@
{
"name": "@clusterio/plugin-global_chat",
"version": "2.0.0-alpha0",
"description": "Clusterio plugin forwarding between Factorio servers",
"author": "Hornwitser <github@hornwitser.no>",
"homepage": "https://github.com/clusterio/factorioClusterio#readme",
"license": "MIT",
"repository": "clusterio/factorioClusterio",
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
"url": "https://github.com/clusterio/factorioClusterio/issues"
},
"dependencies": {
"@clusterio/lib": ">=2.0.0-alpha0"
}
}
-1
View File
@@ -22,7 +22,6 @@ module.exports = {
name: "research_sync",
title: "Research Sync",
description: "Synchronises technology research progress between instances.",
version: "2.0.0-alpha",
instanceEntrypoint: "instance",
masterEntrypoint: "master",
+19
View File
@@ -0,0 +1,19 @@
{
"name": "@clusterio/plugin-research_sync",
"version": "2.0.0-alpha0",
"description": "Clusterio plugin for synchronizing research between Factorio servers",
"author": "Hornwitser <github@hornwitser.no>",
"homepage": "https://github.com/clusterio/factorioClusterio#readme",
"license": "MIT",
"repository": "clusterio/factorioClusterio",
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
"url": "https://github.com/clusterio/factorioClusterio/issues"
},
"dependencies": {
"@clusterio/lib": ">=2.0.0-alpha0",
"fs-extra": "^8.1.0"
}
}
-1
View File
@@ -5,6 +5,5 @@ module.exports = {
name: "statistics_exporter",
title: "Prometheus Statistics Export",
description: "Exports statistics to Prometheus",
version: "2.0.0-alpha",
instanceEntrypoint: "instance",
};
+18
View File
@@ -0,0 +1,18 @@
{
"name": "@clusterio/plugin-statistics_exporter",
"version": "2.0.0-alpha0",
"description": "Clusterio plugin for gathering statistics from Factorio servers",
"author": "Hornwitser <github@hornwitser.no>",
"homepage": "https://github.com/clusterio/factorioClusterio#readme",
"license": "MIT",
"repository": "clusterio/factorioClusterio",
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
"url": "https://github.com/clusterio/factorioClusterio/issues"
},
"dependencies": {
"@clusterio/lib": ">=2.0.0-alpha0"
}
}
-1
View File
@@ -57,7 +57,6 @@ module.exports = {
name: "subspace_storage",
title: "Subspace Storage",
description: "Provides shared storage across instances for the Subspace Storage mod",
version: "2.0.0-alpha",
instanceEntrypoint: "instance",
InstanceConfigGroup,
+19
View File
@@ -0,0 +1,19 @@
{
"name": "@clusterio/plugin-subspace_storage",
"version": "2.0.0-alpha0",
"description": "Clusterio plugin for sharing storage between Factorio servers",
"author": "Hornwitser <github@hornwitser.no>",
"homepage": "https://github.com/clusterio/clusterio#readme",
"license": "MIT",
"repository": "clusterio/factorioClusterio",
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
"url": "https://github.com/clusterio/factorioClusterio/issues"
},
"dependencies": {
"@clusterio/lib": ">=2.0.0-alpha0",
"fs-extra": "^8.1.0"
}
}
-1
View File
@@ -1,5 +1,4 @@
"use strict";
const express = require("express");
const path = require("path");
const prometheus = require("@clusterio/lib/prometheus");