/
package.json
142 lines (142 loc) · 5.63 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
{
"name": "@consensys/admin-api",
"private": true,
"version": "22.7.0",
"description": "The aim of this project is to automate the configuration of Codefi's IAM services",
"license": "Apache",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build && copyfiles -u 2 src/config/actions/*.js src/config/scripts/*.js dist/config",
"docs": "speccy serve ./api-spec.json",
"lint-docs": "speccy lint --json-schema ./api-spec.json",
"prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"stop": "pkill --signal SIGINT admin-api",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug 0.0.0.0:9229 --watch",
"docker": "docker-compose up --build",
"docker:detached": "docker-compose up -d --build",
"docker:down": "docker-compose down",
"lint": "eslint --cache '{src,apps,libs,test}/**/*.ts'",
"lint:fix": "eslint --cache '{src,apps,libs,test}/**/*.ts' --fix",
"test": "jest src",
"test:watch": "jest src --watch",
"test:cov": "jest src --ci --coverage",
"test:integration": "INTEGRATION_TEST=true jest integration --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:client": "INTEGRATION_TEST=true jest integration/client.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:client:command": "INTEGRATION_TEST=true jest integration/client.command.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:clientGrants": "INTEGRATION_TEST=true jest integration/clientGrant.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:authHook": "INTEGRATION_TEST=true jest integration/webHookController.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:resourceServerApi": "INTEGRATION_TEST=true jest integration/resourceServerApi.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:role": "INTEGRATION_TEST=true jest integration/role.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:user": "INTEGRATION_TEST=true jest integration/user.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:user:command": "INTEGRATION_TEST=true jest integration/user.command.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"test:integration:pipeline": "PIPELINE=true jest integration/*.integration.test.ts --detectOpenHandles --runInBand --verbose --forceExit",
"readiness:check": "PIPELINE=true ts-node integration/utils/readyCheck.ts",
"release": "standard-version",
"database:configure": "configure-database"
},
"dependencies": {
"@consensys/auth": "workspace:*",
"@consensys/error-handler": "workspace:*",
"@consensys/messaging-events": "workspace:*",
"@consensys/nestjs-messaging": "workspace:*",
"@consensys/observability": "workspace:*",
"@consensys/ts-types": "workspace:*",
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/platform-express": "^8.0.0",
"@nestjs/swagger": "^5.2.1",
"@nestjs/terminus": "^8.0.0",
"auth0": "^2.37.0",
"camelcase-keys": "^6.2.2",
"dotenv": "^16.0.1",
"joi": "^17.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"swagger-ui-express": "^4.4.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/auth0": "2.3.37",
"@types/express": "^4.17.13",
"@types/jest": "^26.0.15",
"@types/node": "^18.0.0",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"axios": "^0.27.2",
"axios-retry": "^3.2.5",
"copyfiles": "^2.2.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"googleapis": "^39.2.0",
"husky": "^4.2.5",
"jest": "^26.6.3",
"jest-create-mock-instance": "^2.0.0",
"jest-junit": "^12.0.0",
"jest-sonar-reporter": "^2.0.0",
"jsonwebtoken": "^8.5.1",
"lint-staged": "^10.3.0",
"prettier": "^2.0.5",
"speccy": "^0.11.0",
"standard-version": "^9.0.0",
"ts-jest": "^26.4.3",
"ts-node": "^10.8.1",
"typescript": "^4.3.5"
},
"jest": {
"globalSetup": "./integration/utils/globalSetup.ts",
"globalTeardown": "./integration/utils/globalTeardown.ts",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"coverageThreshold": {
"global": {
"statements": 90,
"branches": 90,
"functions": 90,
"lines": 90
}
},
"rootDir": "./",
"testRegex": ".test.(ts|js)$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"transformIgnorePatterns": [
"/dist/",
"/coverage",
"/node_modules/"
],
"collectCoverageFrom": [
"src/*/**/*.{ts,js}",
"!src/**/{server,sleep,adminToken,RequestInterceptor}.{ts,js}",
"!src/{validation,modules,filters,guards,responses,utils}/**",
"!src/services/instances/**",
"!src/config/**.js"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"testResultsProcessor": "jest-sonar-reporter",
"reporters": [
"default",
"jest-junit"
]
},
"lint-staged": {
"{src,apps,libs,test}/**/*.ts": [
"eslint --fix",
"prettier --write"
]
}
}