mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 12:07:34 +00:00
This commit rewrites linting support in the project to be based solely on the ESLint as advised by the TSLint tool authors: https://medium.com/palantir/tslint-in-2019-1a144c2317a9 The migration is based on default, recommended settings for TypeScript in ESLint and is expected to be updated in future to better fit project goals. All references has been updated and replaced with relevant ESLint context: - dependencies migration from TSLint to ESLint - VSCode configuration changes to support ESLint exension - VSCode extensions recommendation changes - `.eslintrc` and `.eslintignore` configuration files added - all error level problems in the source files are covered by this migration Thanks!
99 lines
3.4 KiB
JSON
99 lines
3.4 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|