Converted server to Typescript

This commit is contained in:
Thomas
2021-01-28 17:49:49 +01:00
parent 1149f17b20
commit cc6a474a88
29 changed files with 655 additions and 1830 deletions

View File

@@ -1,11 +1,13 @@
{
"name": "tronio-server",
"version": "2.0.0",
"version": "2.1.0",
"description": "Tron.io game server",
"main": "server.js",
"main": "dist/app.js",
"scripts": {
"start": "node src/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
"start": "tsc && node dist/app.js",
"build": "tsc",
"lint": "echo \"Warning: no lint specified\"",
"test": "echo \"Warning: no test specified\""
},
"repository": {
"type": "git",
@@ -14,15 +16,16 @@
"author": "gltron",
"license": "ISC",
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"uuid": "^8.3.1",
"ws": "^7.3.1"
},
"devDependencies": {
"eslint": "^7.12.1",
"eslint-config-standard": "^16.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1"
"@types/express": "^4.17.11",
"@types/node": "^14.14.22",
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"typescript": "^4.1.3"
}
}