mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 14:47:28 +00:00
Update packages, add tests, add type casts (#229)
- upgrade to latest packages - cast `req.user` as `UserDocument` - update logger to use latest Winston syntax - disable `no-inferrable-types`, Mongoose use unified topology Thx to @CarlosSolrac
This commit is contained in:
committed by
Piotr Błażejewicz (Peter Blazejewicz)
parent
53ccb59f93
commit
1098943419
195
package.json
195
package.json
@@ -1,98 +1,101 @@
|
||||
{
|
||||
"name": "express-typescript-starter",
|
||||
"version": "0.1.0",
|
||||
"description": "A starting point for Node.js express apps with TypeScript",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/TypeScript-Node-Starter"
|
||||
},
|
||||
"author": "Bowden Kelly",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "npm run serve",
|
||||
"build": "npm run build-sass && npm run build-ts && npm run lint && npm run copy-static-assets",
|
||||
"serve": "node dist/server.js",
|
||||
"watch-node": "nodemon dist/server.js",
|
||||
"watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",
|
||||
"test": "jest --forceExit --coverage --verbose",
|
||||
"watch-test": "npm run test -- --watchAll",
|
||||
"build-ts": "tsc",
|
||||
"watch-ts": "tsc -w",
|
||||
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
|
||||
"watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css",
|
||||
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix",
|
||||
"copy-static-assets": "ts-node copyStaticAssets.ts",
|
||||
"debug": "npm run build && npm run watch-debug",
|
||||
"serve-debug": "nodemon --inspect dist/server.js",
|
||||
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run serve-debug\""
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^3.0.1",
|
||||
"bcrypt-nodejs": "^0.0.3",
|
||||
"bluebird": "^3.5.5",
|
||||
"body-parser": "^1.19.0",
|
||||
"compression": "^1.7.4",
|
||||
"connect-mongo": "^3.0.0",
|
||||
"dotenv": "^8.0.0",
|
||||
"errorhandler": "^1.5.1",
|
||||
"express": "^4.17.1",
|
||||
"express-flash": "0.0.2",
|
||||
"express-session": "^1.16.2",
|
||||
"express-validator": "^6.0.1",
|
||||
"fbgraph": "^1.4.4",
|
||||
"lodash": "^4.17.13",
|
||||
"lusca": "^1.6.1",
|
||||
"mongoose": "^5.6.0",
|
||||
"nodemailer": "^6.2.1",
|
||||
"passport": "^0.4.0",
|
||||
"passport-facebook": "^3.0.0",
|
||||
"passport-local": "^1.0.0",
|
||||
"pug": "^2.0.4",
|
||||
"request": "^2.88.0",
|
||||
"request-promise": "^4.2.4",
|
||||
"winston": "^2.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/async": "^3.0.0",
|
||||
"@types/bcrypt-nodejs": "^0.0.30",
|
||||
"@types/bluebird": "^3.5.27",
|
||||
"@types/body-parser": "^1.17.0",
|
||||
"@types/chai": "^4.1.7",
|
||||
"@types/compression": "^0.0.36",
|
||||
"@types/connect-mongo": "^0.0.42",
|
||||
"@types/dotenv": "^6.1.1",
|
||||
"@types/errorhandler": "^0.0.32",
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/express-flash": "0.0.0",
|
||||
"@types/express-session": "^1.15.13",
|
||||
"@types/jest": "^24.0.15",
|
||||
"@types/jquery": "^3.3.29",
|
||||
"@types/lodash": "^4.14.134",
|
||||
"@types/lusca": "^1.6.0",
|
||||
"@types/mongodb": "^3.1.28",
|
||||
"@types/mongoose": "^5.5.6",
|
||||
"@types/morgan": "^1.7.35",
|
||||
"@types/node": "^12.0.10",
|
||||
"@types/nodemailer": "^6.2.0",
|
||||
"@types/passport": "^1.0.0",
|
||||
"@types/passport-facebook": "^2.1.9",
|
||||
"@types/passport-local": "^1.0.33",
|
||||
"@types/request": "^2.48.1",
|
||||
"@types/shelljs": "^0.8.5",
|
||||
"@types/supertest": "^2.0.7",
|
||||
"@types/winston": "^2.3.9",
|
||||
"@typescript-eslint/eslint-plugin": "^1.12.0",
|
||||
"@typescript-eslint/parser": "^1.12.0",
|
||||
"chai": "^4.2.0",
|
||||
"concurrently": "^4.1.0",
|
||||
"eslint": "^5.0.0",
|
||||
"jest": "^24.8.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"nodemon": "^1.19.1",
|
||||
"shelljs": "^0.8.3",
|
||||
"supertest": "^4.0.2",
|
||||
"ts-jest": "^24.0.2",
|
||||
"ts-node": "^8.3.0",
|
||||
"typescript": "^3.5.2"
|
||||
}
|
||||
"name": "express-typescript-starter",
|
||||
"version": "0.1.0",
|
||||
"description": "A starting point for Node.js express apps with TypeScript",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/TypeScript-Node-Starter"
|
||||
},
|
||||
"author": "Bowden Kelly",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "npm run serve",
|
||||
"build": "npm run build-sass && npm run build-ts && npm run lint && npm run copy-static-assets",
|
||||
"serve": "node dist/server.js",
|
||||
"watch-node": "nodemon dist/server.js",
|
||||
"watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",
|
||||
"test": "jest --forceExit --coverage --verbose",
|
||||
"watch-test": "npm run test -- --watchAll",
|
||||
"build-ts": "tsc",
|
||||
"watch-ts": "tsc -w",
|
||||
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
|
||||
"watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css",
|
||||
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix",
|
||||
"copy-static-assets": "ts-node copyStaticAssets.ts",
|
||||
"debug": "npm run build && npm run watch-debug",
|
||||
"serve-debug": "nodemon --inspect dist/server.js",
|
||||
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run serve-debug\""
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^3.1.0",
|
||||
"bcrypt-nodejs": "^0.0.3",
|
||||
"bluebird": "^3.5.5",
|
||||
"body-parser": "^1.19.0",
|
||||
"compression": "^1.7.4",
|
||||
"connect-mongo": "^3.0.0",
|
||||
"dotenv": "^8.1.0",
|
||||
"errorhandler": "^1.5.1",
|
||||
"express": "^4.17.1",
|
||||
"express-flash": "0.0.2",
|
||||
"express-session": "^1.16.2",
|
||||
"express-validator": "^6.2.0",
|
||||
"fbgraph": "^1.4.4",
|
||||
"lodash": "^4.17.15",
|
||||
"lusca": "^1.6.1",
|
||||
"mongoose": "^5.7.1",
|
||||
"nodemailer": "^6.3.0",
|
||||
"passport": "^0.4.0",
|
||||
"passport-facebook": "^3.0.0",
|
||||
"passport-local": "^1.0.0",
|
||||
"pug": "^2.0.4",
|
||||
"request": "^2.88.0",
|
||||
"request-promise": "^4.2.4",
|
||||
"winston": "^3.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/async": "^3.0.2",
|
||||
"@types/bcrypt-nodejs": "^0.0.30",
|
||||
"@types/bluebird": "^3.5.27",
|
||||
"@types/body-parser": "^1.17.1",
|
||||
"@types/chai": "^4.2.3",
|
||||
"@types/compression": "^1.0.1",
|
||||
"@types/concurrently": "^4.1.0",
|
||||
"@types/connect-mongo": "^0.0.43",
|
||||
"@types/dotenv": "^6.1.1",
|
||||
"@types/errorhandler": "^0.0.32",
|
||||
"@types/eslint": "^6.1.1",
|
||||
"@types/express": "^4.17.1",
|
||||
"@types/express-flash": "0.0.1",
|
||||
"@types/express-session": "^1.15.14",
|
||||
"@types/jest": "^24.0.18",
|
||||
"@types/jquery": "^3.3.31",
|
||||
"@types/lodash": "^4.14.141",
|
||||
"@types/lusca": "^1.6.1",
|
||||
"@types/mongoose": "^5.5.18",
|
||||
"@types/node": "^12.7.8",
|
||||
"@types/node-sass": "^4.11.0",
|
||||
"@types/nodemailer": "^6.2.1",
|
||||
"@types/passport": "^1.0.1",
|
||||
"@types/passport-facebook": "^2.1.9",
|
||||
"@types/passport-local": "^1.0.33",
|
||||
"@types/pug": "^2.0.4",
|
||||
"@types/request": "^2.48.3",
|
||||
"@types/request-promise": "^4.1.44",
|
||||
"@types/shelljs": "^0.8.5",
|
||||
"@types/supertest": "^2.0.8",
|
||||
"@types/winston": "^2.4.4",
|
||||
"@typescript-eslint/eslint-plugin": "^2.3.1",
|
||||
"@typescript-eslint/parser": "^2.3.1",
|
||||
"chai": "^4.2.0",
|
||||
"concurrently": "^4.1.2",
|
||||
"eslint": "^6.4.0",
|
||||
"jest": "^24.9.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"nodemon": "^1.19.2",
|
||||
"shelljs": "^0.8.3",
|
||||
"supertest": "^4.0.2",
|
||||
"ts-jest": "^24.1.0",
|
||||
"ts-node": "^8.4.1",
|
||||
"typescript": "^3.6.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user