[backend][nodejs] Introduce TypeScript

This commit is contained in:
koeberlue
2021-04-05 21:25:17 +02:00
parent 4a839343f5
commit 6586d07745
8 changed files with 2136 additions and 7 deletions

View File

@@ -2,17 +2,30 @@
"name": "nodejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "lib/app.js",
"scripts": {
"test": "mocha"
"test": "ts-mocha -p tsconfig.json src/**/*.spec.ts",
"start": "tsc && node lib/app.js build:live",
"build": "tsc -p .",
"build:live": "nodemon --watch 'src/**/*.ts' --exec \"ts-node\" src/app.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"mocha": "^8.3.2"
"@types/expect": "^24.3.0",
"@types/express": "^4.16.1",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"mocha": "^8.3.2",
"nodemon": "^2.0.7",
"ts-mocha": "^8.0.0",
"ts-node": "^9.1.1",
"tslint": "^5.12.1",
"typescript": "^4.2.3"
},
"dependencies": {
"express": "^4.16.4",
"random": "^3.0.3",
"seedrandom": "^3.0.5",
"should": "^13.2.3"