diff options
author | Miodec <[email protected]> | 2024-07-22 12:35:07 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-07-22 12:35:15 +0200 |
commit | 2807600a0f25a7329f464df43beb63e8ae202763 (patch) | |
tree | 2d5957c45a36d052c6b0a3a0278773971c41d902 | |
parent | 51184a37e94ef2a27b4797f2bedfe9746a1318be (diff) | |
download | monkeytype-2807600a0f25a7329f464df43beb63e8ae202763.tar.gz monkeytype-2807600a0f25a7329f464df43beb63e8ae202763.zip |
backend watch ts and lint
-rw-r--r-- | backend/package.json | 6 | ||||
-rw-r--r-- | package-lock.json | 120 |
2 files changed, 124 insertions, 2 deletions
diff --git a/backend/package.json b/backend/package.json index 7655c2e09..128a8de06 100644 --- a/backend/package.json +++ b/backend/package.json @@ -4,7 +4,7 @@ "license": "GPL-3.0", "private": true, "scripts": { - "lint": "eslint \"./**/*.ts\"", + "lint": "eslint \"./src/**/*.ts\"", "build": "tsc --build", "watch": "tsc --build --watch", "clean": "tsc --build --clean", @@ -12,7 +12,7 @@ "start": "npm run build && node ./build/server.js", "test": "vitest run", "test-coverage": "vitest run --coverage", - "dev": "tsx watch ./src/server.ts", + "dev": "concurrently \"tsx watch --clear-screen=false ./src/server.ts\" \"tsc --preserveWatchOutput --noEmit --watch\" \"npx eslint-watch \"./src/**/*.ts\"\"", "knip": "knip", "docker-db-only": "docker compose -f docker/compose.db-only.yml up", "docker": "docker compose -f docker/compose.yml up" @@ -80,7 +80,9 @@ "@types/ua-parser-js": "0.7.36", "@types/uuid": "8.3.4", "@vitest/coverage-v8": "1.6.0", + "concurrently": "8.2.2", "eslint": "8.57.0", + "eslint-watch": "8.0.0", "ioredis-mock": "7.4.0", "readline-sync": "1.4.10", "supertest": "6.2.3", diff --git a/package-lock.json b/package-lock.json index d012a6d40..76eb64c3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -105,7 +105,9 @@ "@types/ua-parser-js": "0.7.36", "@types/uuid": "8.3.4", "@vitest/coverage-v8": "1.6.0", + "concurrently": "8.2.2", "eslint": "8.57.0", + "eslint-watch": "8.0.0", "ioredis-mock": "7.4.0", "readline-sync": "1.4.10", "supertest": "6.2.3", @@ -128,6 +130,73 @@ "undici-types": "~5.26.4" } }, + "backend/node_modules/concurrently": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-8.2.2.tgz", + "integrity": "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "date-fns": "^2.30.0", + "lodash": "^4.17.21", + "rxjs": "^7.8.1", + "shell-quote": "^1.8.1", + "spawn-command": "0.0.2", + "supports-color": "^8.1.1", + "tree-kill": "^1.2.2", + "yargs": "^17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": "^14.13.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "backend/node_modules/concurrently/node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "backend/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "backend/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "backend/node_modules/typescript": { "version": "5.5.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", @@ -12240,6 +12309,33 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-watch": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/eslint-watch/-/eslint-watch-8.0.0.tgz", + "integrity": "sha512-piws/uE4gkZdz1pwkaEFx+kSWvoGnVX8IegFRrE1NUvlXjtU0rg7KhT1QDj/NzhAwbiLEfdRHWz5q738R4zDKA==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4.3.2", + "execa": "^5.1.1", + "keypress": "^0.2.1", + "lodash.debounce": "^4.0.8", + "lodash.isempty": "^4.4.0", + "lodash.isequal": "^4.5.0", + "lodash.kebabcase": "^4.1.1", + "lodash.unionwith": "^4.6.0", + "optionator": "^0.9.1" + }, + "bin": { + "esw": "bin/esw" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": ">=8 <9.0.0" + } + }, "node_modules/eslint/node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -18668,6 +18764,12 @@ "node": ">= 0.6" } }, + "node_modules/keypress": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/keypress/-/keypress-0.2.1.tgz", + "integrity": "sha512-HjorDJFNhnM4SicvaUXac0X77NiskggxJdesG72+O5zBKpSqKFCrqmndKVqpu3pFqkla0St6uGk8Ju0sCurrmg==", + "dev": true + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -19397,6 +19499,18 @@ "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" }, + "node_modules/lodash.isempty": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz", + "integrity": "sha512-oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==", + "dev": true + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, "node_modules/lodash.isfunction": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", @@ -19485,6 +19599,12 @@ "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==", "dev": true }, + "node_modules/lodash.unionwith": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.unionwith/-/lodash.unionwith-4.6.0.tgz", + "integrity": "sha512-Hk8otPCkVM4UxRoft3E5dAREwExyXci6iVPCibHIEiG7neb9KAdWHYS75MYpVTvxDrnpp7WCJNZ84vAk7j7tVA==", + "dev": true + }, "node_modules/lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", |