fix: node imports

changed the config.json files so that the dependencies in node_modules are in the right place
This commit is contained in:
cv
2021-06-06 11:52:13 +02:00
parent 706aca57fe
commit 86878c1d2e
6 changed files with 2501 additions and 902 deletions
+4 -3
View File
@@ -96,13 +96,14 @@ export const startServer = (overrideConfig = null) => {
const serverPort = overrideConfig?.port || config.server.port;
// Start server
server.listen(serverPort, '0.0.0.0', () =>
console.log(`HTTP Server is listening on port ${serverPort}`)
);
const returnMessage = `HTTP Server is listening on port ${serverPort}`;
server.listen(serverPort, '0.0.0.0', () => console.log(returnMessage));
// init timer
global.timer = new EventTimer(server, config);
global.timer.setupWithEventList(data.events);
return returnMessage;
};
// Start OSC server
+21
View File
@@ -1,5 +1,26 @@
{
"type": "module",
"dependencies": {
"body-parser": "~1.19.0",
"express": "~4.17.1",
"express-session": "~1.17.1",
"lowdb": "2.1.0",
"multer": "^1.4.2",
"nanoid": "^3.1.22",
"node-osc": "6.0.2",
"passport": "~0.4.1",
"passport-local": "~1.0.0",
"socket.io": "^4.0.0"
},
"devDependencies": {
"eslint": "^7.26.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0"
},
"scripts": {
"nodestart": "nodemon app.js",
"start": "node app.js"
+2189
View File
File diff suppressed because it is too large Load Diff