-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
184 lines (184 loc) · 8.98 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"name": "@app/api",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"engines": {
"node": "16"
},
"scripts": {
"postinstall": "node ./polyfill-types-mocha.js",
"install:all": "npm install -g concurrently && concurrently \"npm install\" \"npm run install:web-app\" -n \"install,install:web-app\"",
"install:web-app": "cd client-side/web-app && npm install",
"seed": "npm run ts-node ./scripts-dev/seed.ts",
"tear-down-databases": "npm run ts-node ./scripts-dev/tear-down-databases.ts",
"start:dev:firebase": "firebase emulators:start --export-on-exit=./.firebase-data --import=./.firebase-data",
"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:dev:chrome": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-chrome.config.js --path tsconfig.build.json",
"start:dev:no-typecheck:chrome": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-no-type-checks-chrome.config.js --path tsconfig.build.json",
"start:dev:tsc:chrome": "NODE_ENV=development nest start --path tsconfig.tsc-chrome.json --watch",
"start:debug:chrome": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-debug-chrome.config.js --path tsconfig.build.json",
"start:debug:no-typecheck:chrome": "NODE_ENV=development nest build --watch --webpack --webpackPath webpack-hmr-debug-no-type-checks-chrome.config.js --path tsconfig.build.json",
"start:debug:tsc:chrome": "NODE_ENV=development nest start --path tsconfig.tsc-chrome.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 node_modules/.bin/jest --runInBand --testTimeout=86400000",
"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 node_modules/.bin/jest --runInBand --testTimeout=86400000 --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 node_modules/.bin/jest --runInBand --testTimeout=86400000 --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 node_modules/.cache/webpack",
"build:api": "npm run clean:api && nest build --path tsconfig.build.json",
"typecheck": "tsc --noEmit",
"typecheck:declaration-files": "tsc -p tsconfig.declaration-files.json --noEmit",
"format": "prettier --write .",
"lint": "eslint --ext .ts,.tsx --max-warnings 0 .",
"lint:fix": "eslint --ext .ts,.tsx --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\" && npm run lint",
"integrity-check:api:fast": "concurrently \"npm run typecheck:declaration-files\" \"npm run typecheck\" -n \"typecheck:declaration-files,typecheck:code\" && npm run lint",
"integrity-check:web-app": "cd client-side/web-app && npm run integrity-check",
"integrity-check:web-app:fast": "cd client-side/web-app && npm run integrity-check:fast",
"_integrity-check:all": "npm run build:smart-contracts && concurrently \"npm run integrity-check:api\" \"npm run integrity-check:web-app\" -n \"api,web-app\"",
"_integrity-check:all:fast": "npm run build:smart-contracts:fast && concurrently \"npm run integrity-check:api:fast\" \"npm run integrity-check:web-app:fast\" -n \"api,web-app\"",
"integrity-check:all": "IS_INTEGRITY_CHECK=true npm run _integrity-check:all",
"integrity-check:all:fast": "IS_INTEGRITY_CHECK=true npm run _integrity-check:all:fast",
"precommit": "lint-staged && npm run integrity-check:all:fast",
"pre-merge-commit": "npm run install:all && npm run integrity-check:all",
"update-all-dependencies": "npm-check-updates --upgrade && npm run reset-all-dependencies",
"reset-all-dependencies": "rimraf **/package-lock.json **/node_modules && npm run install:all",
"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",
"prepare": "husky install",
"hardhat": "TS_NODE_TRANSPILE_ONLY=1 npx hardhat",
"clean:smart-contracts": "npm run hardhat clean && rimraf libs/smart-contracts/{cache,artifacts,typechain,typechain-types}",
"build:smart-contracts": "npm run clean:smart-contracts && npm run build:smart-contracts:fast",
"build:smart-contracts:fast": "npm run hardhat compile"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.121.0",
"@nestjs/common": "^8.4.1",
"@nestjs/core": "^8.4.1",
"@nestjs/platform-express": "^8.4.1",
"@nestjs/swagger": "^5.2.0",
"@openzeppelin/contracts": "^4.7.0",
"axios": "^0.27.2",
"cookie-parser": "^1.4.6",
"dotenv": "^16.0.1",
"ethers": "^5.6.9",
"firebase-admin": "^11.0.0",
"glob": "^8.0.3",
"not-me": "^5.3.0",
"pg": "^8.7.3",
"read-chunk": "^4.0.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.5.5",
"sharp": "^0.30.7",
"source-map-support": "^0.5.21",
"swagger-ui-express": "^4.4.0",
"typeorm": "~0.2.45",
"uuid": "^8.3.2",
"validator": "^13.7.0"
},
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.18.6",
"@nestjs/cli": "^8.2.3",
"@nestjs/schematics": "^8.0.8",
"@nestjs/testing": "^8.4.1",
"@nomiclabs/hardhat-ethers": "^2.1.0",
"@typechain/ethers-v5": "^10.1.0",
"@typechain/hardhat": "^6.1.2",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.13",
"@types/jest": "^28.1.4",
"@types/multer": "^1.4.7",
"@types/node": "^16.11.21",
"@types/pg": "^8.6.5",
"@types/sharp": "^0.30.4",
"@types/supertest": "^2.0.12",
"@types/uuid": "^8.3.4",
"@types/validator": "^13.7.4",
"@types/webpack-env": "^1.17.0",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.2.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"hardhat": "^2.10.0",
"husky": "^8.0.1",
"jest": "^28.1.2",
"lint-staged": "^13.0.3",
"npm-check-updates": "^15.2.1",
"prettier": "^2.7.1",
"run-script-webpack-plugin": "^0.1.1",
"source-map-loader": "^4.0.0",
"supertest": "^6.2.4",
"ts-jest": "^28.0.5",
"ts-loader": "^9.3.1",
"ts-node": "^10.8.2",
"tsconfig-paths": "^4.0.0",
"typechain": "^8.1.0",
"typescript": "^4.7.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>"
]
},
"lint-staged": {
"*.{js,jsx,json,ts,tsx,scss,sass,css,md,yml,yaml}": "prettier --write"
}
}