Compare commits

..

No commits in common. "517b093b2053c225ae0ec90a145147bae01265ad" and "02938810e0096b4803108f6275a2fda0fa3bd320" have entirely different histories.

6 changed files with 70 additions and 733 deletions

19
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Website in Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/packages/game/lib/static",
"preLaunchTask": "Build",
"pathMapping": {
"/": "${workspaceFolder}/packages/game/src"
}
}
]
}

View file

@ -23,8 +23,7 @@
"html.format.extraLiners": "", "html.format.extraLiners": "",
"html.format.indentInnerHtml": true, "html.format.indentInnerHtml": true,
"html.format.maxPreserveNewLines": 1, "html.format.maxPreserveNewLines": 1,
"html.format.wrapAttributes": "preserve-aligned", "html.format.wrapAttributes": "preserve-aligned"
"npm.packageManager": "npm"
}, },
// See https://go.microsoft.com/fwlink/?LinkId=733558 // See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format // for the documentation about the tasks.json format
@ -33,15 +32,8 @@
"tasks": [ "tasks": [
{ {
"label": "Build", "label": "Build",
"type": "shell", "type": "npm",
"options": { "script": "watch",
"cwd": "${workspaceFolder:Solution Items}"
},
"command": "npm",
"args": [
"run",
"watch"
],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
@ -70,15 +62,8 @@
}, },
{ {
"label": "Rebuild", "label": "Rebuild",
"type": "shell", "type": "npm",
"options": { "script": "rebuild",
"cwd": "${workspaceFolder:Solution Items}"
},
"command": "npm",
"args": [
"run",
"rebuild"
],
"problemMatcher": [], "problemMatcher": [],
"presentation": { "presentation": {
"reveal": "never" "reveal": "never"
@ -86,15 +71,8 @@
}, },
{ {
"label": "Lint", "label": "Lint",
"type": "shell", "type": "npm",
"options": { "script": "lint-ide",
"cwd": "${workspaceFolder:Solution Items}"
},
"command": "npm",
"args": [
"run",
"lint-ide"
],
"problemMatcher": "$eslint-stylish", "problemMatcher": "$eslint-stylish",
"presentation": { "presentation": {
"reveal": "never" "reveal": "never"
@ -117,31 +95,10 @@
"preLaunchTask": "Build", "preLaunchTask": "Build",
"pathMapping": { "pathMapping": {
"/": "${workspaceFolder:ConnectForce}/src" "/": "${workspaceFolder:ConnectForce}/src"
},
"presentation": {
"hidden": true
}
},
{
"type": "node",
"request": "launch",
"name": "Launch Server",
"program": "${workspaceFolder:Server}/src/main.js",
"console": "integratedTerminal",
"presentation": {
"hidden": true
} }
} }
], ],
"compounds": [ "compounds": []
{
"name": "Launch Project in Chrome",
"configurations": [
"Launch Website in Chrome",
"Launch Server"
]
}
]
}, },
"extensions": { "extensions": {
"recommendations": [ "recommendations": [

693
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"rebuild": "npm run --workspaces rebuild", "rebuild": "npm run --workspaces rebuild",
"watch": "concurrently --raw \"npm run --workspaces --if-present watch\"", "watch": "npm run --workspaces watch",
"clean": "npm run --workspaces clean", "clean": "npm run --workspaces clean",
"lint-local": "eslint --max-warnings 0 .eslintrc.cjs", "lint-local": "eslint --max-warnings 0 .eslintrc.cjs",
"lint-local-ide": "npm run lint-local || exit 0", "lint-local-ide": "npm run lint-local || exit 0",
@ -20,7 +20,6 @@
}, },
"devDependencies": { "devDependencies": {
"@manuth/eslint-plugin-typescript": "^4.0.1", "@manuth/eslint-plugin-typescript": "^4.0.1",
"concurrently": "^7.6.0",
"eslint": "^8.29.0" "eslint": "^8.29.0"
} }
} }

View file

@ -5,13 +5,5 @@
"description": "A server for Storing ConnectForce Savegames", "description": "A server for Storing ConnectForce Savegames",
"author": "Manuel Thalmann <m@nuth.ch>", "author": "Manuel Thalmann <m@nuth.ch>",
"scripts": { "scripts": {
"start": "noderel -e ./src/main.js"
},
"dependencies": {
"express": "^4.18.2"
},
"devDependencies": {
"@types/express": "^4.17.15",
"noderel": "^1.0.13"
} }
} }

View file

@ -1,21 +0,0 @@
import express from "express";
const app = express();
app.use(
(request, response, next) =>
{
response.send("Hello World");
response.status(100);
});
app.use(
[
(error, request, response, next) =>
{
response.send(`${error}`);
response.status(error?.status ?? 500);
}
]);
app.listen(1337);