-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 6.73 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "@app/api",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"license": "MIT",
"engines": {
"node": "14"
},
"scripts": {
"install:all": "npm install & npm run install:web-app",
"install:all:ci": "npm ci && npm run install:web-app:ci",
"install:web-app": "cd client-side/web-app && npm install",
"install:web-app:ci": "cd client-side/web-app && npm ci",
"seed": "npm run ts-node ./scripts-dev/seed.ts",
"tear-down-databases": "npm run ts-node ./scripts-dev/tear-down-databases.ts",
"start:dev": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr.config.js --path tsconfig.build.json",
"start:dev:no-typecheck": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-no-type-checks.config.js --path tsconfig.build.json",
"start:dev:tsc": "NODE_ENV=development nest start --path tsconfig.build.json --watch",
"start:debug": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-debug.config.js --path tsconfig.build.json",
"start:debug:no-typecheck": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-debug-no-type-checks.config.js --path tsconfig.build.json",
"start:debug:tsc": "NODE_ENV=development nest start --path tsconfig.build.json --watch --debug",
"start:prod": "typeorm migration:run && node dist/src/main.js",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:cov:changed": "npm run test:cov -- --onlyChanged",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:debug:watch": "npm run test:debug -- --watch",
"test:e2e": "jest --config ./test/jest-e2e.json",
"test:e2e:cov": "npm run test:e2e -- --coverage",
"test:e2e:cov:changed": "npm run test:e2e:cov -- --onlyChanged",
"test:e2e:watch": "jest --config ./test/jest-e2e.json --watch",
"test:e2e:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --config ./test/jest-e2e.json",
"test:e2e:debug:watch": "npm run test:e2e:debug -- --watch",
"test:migrations": "jest --config ./test/jest-migrations.json --runInBand",
"test:migrations:cov": "npm run test:migrations -- --coverage",
"test:migrations:cov:changed": "npm run test:migrations:cov -- --onlyChanged",
"test:migrations:watch": "jest --config ./test/jest-migrations.json --runInBand --watch",
"test:migrations:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --config ./test/jest-migrations.json",
"test:migrations:debug:watch": "npm run test:migrations:debug -- --watch",
"test:all:cov": "jest --config ./test/jest-all.js --coverage",
"test:all:cov:changed": "npm run test:all:cov -- --onlyChanged",
"clean:api": "rimraf dist",
"build:api": "npm run clean:api && nest build",
"typecheck": "tsc --noEmit",
"typecheck:declaration-files": "tsc -p tsconfig.declaration-files.json --noEmit",
"format": "prettier --write .",
"lint": "eslint --ext .ts --max-warnings 0 .",
"lint:fix": "eslint --ext .ts --max-warnings 0 --fix .",
"integrity-check:api": "npm run clean:api && concurrently \"npm run typecheck:declaration-files\" \"npm run typecheck\" -n \"typecheck:declaration-files,typecheck:code\" --no-color && npm run lint",
"integrity-check:web-app": "cd client-side/web-app && npm run clean:declaration-files && concurrently \"npm run typecheck:declaration-files\" \"npm run build\" -n \"typecheck:declaration-files,build\" --no-color && npm run lint",
"integrity-check:all": "concurrently \"npm run integrity-check:api\" \"npm run integrity-check:web-app\" -n \"api,web-app\" --no-color",
"precommit": "lint-staged && npm run integrity-check:all",
"update-all-dependencies": "npm-check-updates -u && rimraf package-lock.json node_modules && npm install",
"list-deprecated-dependencies": "./scripts-dev/list-deprecated-dependencies.sh",
"reset-repository": "git clean -Xdf",
"nest": "nest",
"typeorm": "npm run ts-node ./node_modules/.bin/typeorm",
"ts-node": "ts-node --project tsconfig.build.json --transpile-only -r tsconfig-paths/register"
},
"dependencies": {
"@nestjs/common": "^7.6.18",
"@nestjs/core": "^7.6.18",
"@nestjs/platform-express": "^7.6.18",
"@nestjs/swagger": "^4.8.1",
"@nestjs/typeorm": "^7.1.5",
"bcrypt": "^5.0.1",
"cookie-parser": "^1.4.5",
"dotenv": "^10.0.0",
"glob": "^7.1.7",
"not-me": "^4.0.0",
"pg": "^8.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^6.6.7",
"source-map-support": "^0.5.19",
"swagger-ui-express": "^4.1.6",
"typeorm": "^0.2.34",
"uuid": "^8.3.2"
},
"devDependencies": {
"@nestjs/cli": "^7.6.0",
"@nestjs/schematics": "^7.3.1",
"@nestjs/testing": "^7.6.18",
"@types/bcrypt": "^5.0.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.12",
"@types/jest": "^26.0.23",
"@types/multer": "^1.4.6",
"@types/node": "^15.12.5",
"@types/pg": "^8.6.0",
"@types/supertest": "^2.0.11",
"@types/uuid": "^8.3.0",
"@types/webpack-env": "^1.16.0",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"concurrently": "^6.2.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"jest": "^27.0.6",
"lint-staged": "^11.0.0",
"npm-check-updates": "^11.7.1",
"prettier": "^2.3.2",
"run-script-webpack-plugin": "^0.0.11",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.3.4",
"webpack-node-externals": "^3.0.0"
},
"jest": {
"setupFiles": [
"<rootDir>/src/internals/environment/load-environment-variables.ts",
"<rootDir>/test-environment-impl/base/set-test-process-context.ts"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testMatch": [
"**/*.spec.ts"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"globals": {
"ts-jest": {
"isolatedModules": true,
"tsconfig": "tsconfig.test.json"
}
},
"testEnvironment": "node",
"roots": [
"<rootDir>/src/",
"<rootDir>/libs/"
],
"moduleDirectories": [
"node_modules",
"<rootDir>"
],
"moduleNameMapper": {
"@app/shared/(.*)": "<rootDir>/libs/shared/src/$1"
}
},
"lint-staged": {
"*.{js,jsx,json,ts,tsx,scss,sass,css,md}": "prettier --write"
}
}