mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 23:33:12 +09:00
Move node_modules/_app/ into lib/ as a package (#190)
Move the contents of node_modules/_app into lib/ as there shouldn't be any content in node_modules. This directory is automatically managed and pruned by npm. Add lib/ as a local package in package.json, this allows scripts everywhere to require it's content as "lib/path" instead of relying on local paths. This shadows the StdLib Node.js Bindings package, but I could care less. Change all requires with lib as a local path and _app to use just lib.
This commit is contained in:
1 parent
a13d4c6805
commit
f76c84c3f1
32 files changed
+43
-38
No files matched your search
@@ -1,9 +1,9 @@
|
||||
const needle = require("needle");
|
||||
const fs = require("fs-extra");
|
||||
|
||||
const objectOps = require("./../../lib/objectOps.js");
|
||||
const fileOps = require("_app/fileOps");
|
||||
const stringUtils = require("./../../lib/stringUtils.js");
|
||||
const objectOps = require("lib/objectOps.js");
|
||||
const fileOps = require("lib/fileOps");
|
||||
const stringUtils = require("lib/stringUtils.js");
|
||||
|
||||
const pluginConfig = require("./config");
|
||||
const COMPRESS_LUA = false;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const objectOps = require("../../lib/objectOps.js");
|
||||
const objectOps = require("lib/objectOps.js");
|
||||
const needle = require("needle");
|
||||
const pluginConfig = require("./config")
|
||||
const isJson = require("./isJson")
|
||||
|
||||
@@ -2,7 +2,7 @@ const assert = require("assert");
|
||||
const child_process = require("child_process");
|
||||
const functions = require("./interfacingFunctions");
|
||||
const luamin = require("luamin");
|
||||
const isFactorioCommand = require("_app/isFactorioCommand");
|
||||
const isFactorioCommand = require("lib/isFactorioCommand");
|
||||
const nock = require("nock");
|
||||
|
||||
// sinon does weird prototype manipulation and so doen't need to be saved to anything.
|
||||
|
||||
@@ -4,7 +4,7 @@ var fs = require("fs");
|
||||
var events = require("events");
|
||||
var path = require("path");
|
||||
|
||||
var objectOps = require("./../../lib/objectOps");
|
||||
var objectOps = require("lib/objectOps");
|
||||
|
||||
var LinvoDB = require("linvodb3");
|
||||
// LinvoDB.dbPath = "./database/linvodb/";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const assert = require("assert");
|
||||
|
||||
const isFactorioCommand = require("_app/isFactorioCommand");
|
||||
const isFactorioCommand = require("lib/isFactorioCommand");
|
||||
|
||||
const researchSync = require("./index.js");
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
const clusterTools = require("_app/clusterTools")();
|
||||
const clusterTools = require("lib/clusterTools")();
|
||||
|
||||
module.exports = class remoteCommands {
|
||||
constructor(mergedConfig, messageInterface, extras){
|
||||
|
||||
@@ -9,9 +9,9 @@ module.exports = class remoteCommands {
|
||||
this.messageInterface = messageInterface;
|
||||
this.config = mergedConfig;
|
||||
this.socket = extras.socket;
|
||||
const pluginManager = require("./../../lib/manager/pluginManager.js")(this.config);
|
||||
const configManager = require("./../../lib/manager/configManager.js");
|
||||
// const modManager = require("./../../lib/manager/modManager.js")(this.config);
|
||||
const pluginManager = require("lib/manager/pluginManager.js")(this.config);
|
||||
const configManager = require("lib/manager/configManager.js");
|
||||
// const modManager = require("lib/manager/modManager.js")(this.config);
|
||||
this.socket.on("hello", () => {
|
||||
this.socket.emit("registerServerManager");
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ const needle = require("needle");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
||||
const clusterTools = require("_app/clusterTools")();
|
||||
const clusterTools = require("lib/clusterTools")();
|
||||
const pluginConfig = require("./config");
|
||||
|
||||
module.exports = class remoteCommands {
|
||||
|
||||
@@ -3,7 +3,7 @@ const path = require("path");
|
||||
|
||||
class masterPlugin {
|
||||
constructor({config, socketio, express, Prometheus}){
|
||||
const authenticate = require("./../../lib/authenticate")(config);
|
||||
const authenticate = require("lib/authenticate")(config);
|
||||
|
||||
this.config = config;
|
||||
this.io = socketio;
|
||||
|
||||
Reference in new issue
Block a user