-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
161 lines (161 loc) · 6.13 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
{
"name": "nodejs-rest-api",
"version": "1.4.3",
"description": "Node.js for Token Based Authentication (access and refresh) with PostgreSQL database.",
"index": "src/index.ts",
"scripts": {
"start:dev": "tsc-watch --onSuccess \"ts-node ./src/index.ts\" | pino-pretty",
"start:prod": "node dist/index.js | pino-pretty",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"test:e2e": "NODE_ENV=test jest --testPathPattern=\"tests/e2e/.*test*.\" --maxWorkers=50%",
"test:integration": "NODE_ENV=test jest --testPathPattern=\"tests/integration/.*test*.\" --maxWorkers=50%",
"test:unit": "NODE_ENV=test jest --testPathPattern=\"tests/unit/.*test*.\" --maxWorkers=50%",
"test:unit:ci": "NODE_ENV=test jest --testPathPattern=\"tests/unit/.*test*.\" --runInBand --reporters=default --reporters=jest-junit",
"test:unit:cov": "NODE_ENV=test jest --coverage --testPathPattern=\"tests/unit/.*test*.\"",
"commit": "git add . && git-cz",
"lint": "eslint \"src/**/*.ts\"",
"lint:staged": "lint-staged",
"lint:fix": "eslint \"src/**/*.ts\" --fix",
"migrate:create": "npm run typeorm:cli migration:create src/database/migration/$npm_config_name",
"migrate:create:win": "npm run typeorm:cli migration:create src/database/migration/%npm_config_name%",
"migrate:revert": "npm run typeorm:cli migration:revert -- -d src/database/typeorm/data-source.cli.ts",
"migrate:run": "npm run typeorm:cli migration:run -- -d src/database/typeorm/data-source.cli.ts",
"migrate:show": "npm run typeorm:cli migration:show -- -d src/database/typeorm/data-source.cli.ts",
"release:major": "standard-version --release-as major && git push --follow-tags",
"release:minor": "standard-version --release-as minor && git push --follow-tags",
"release:patch": "standard-version --release-as patch && git push --follow-tags",
"schema:log": "npm run typeorm:cli schema:log -- -d src/database/typeorm/data-source.cli.ts",
"schema:sync": "npm run typeorm:cli schema:sync -- -d src/database/typeorm/data-source.cli.ts",
"seed:create": "npm run typeorm:seed migration:create src/database/seed/$npm_config_name",
"seed:run": "npm run typeorm:seed migration:run -- -d src/database/typeorm/data-source.cli.ts",
"seed:revert": "npm run typeorm:seed migration:revert -- -d src/database/typeorm/data-source.cli.ts",
"typeorm:cli": "NODE_ENV=cli typeorm-ts-node-commonjs",
"typeorm:seed": "NODE_ENV=seed typeorm-ts-node-commonjs",
"prebuild": "rimraf dist",
"commit-msg": "commitlint -e",
"pre-commit": "npm run lint:staged & npm run test:unit",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/neverovski/nodejs-rest-api.git"
},
"author": {
"name": "Dmitry Neverovski",
"email": "dmitryneverovski@gmail.com",
"url": "https://code-stuff.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/neverovski/nodejs-rest-api/issues"
},
"engines": {
"node": "^20",
"npm": "^10"
},
"homepage": "https://github.com/neverovski/nodejs-rest-api#readme",
"dependencies": {
"@autotelic/pino-seq-transport": "^0.1.0",
"@elastic/ecs-pino-format": "^1.5.0",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"ajv-keywords": "^5.1.0",
"body-parser": "^1.20.2",
"bull": "^4.12.2",
"class-transformer": "^0.5.1",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.1",
"dotenv": "^16.4.5",
"express": "^4.18.3",
"express-pino-logger": "^7.0.0",
"express-prom-bundle": "^6.6.0",
"fast-jwt": "^3.3.3",
"google-auth-library": "^9.6.3",
"helmet": "^7.1.0",
"joi": "^17.12.2",
"json-schema": "^0.4.0",
"jwks-rsa": "^3.1.0",
"marked": "^9.1.3",
"mem": "^8.1.1",
"ms": "^2.1.3",
"mustache": "^4.2.0",
"nodemailer": "^6.9.12",
"pg": "^8.11.3",
"pino": "^8.19.0",
"pino-elasticsearch": "^8.0.0",
"pino-http": "^9.0.0",
"pino-pretty": "^10.3.1",
"prom-client": "^15.1.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"tsyringe": "^4.8.0",
"typeorm": "^0.3.20",
"ua-parser-js": "^1.0.37"
},
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@commitlint/cz-commitlint": "^18.6.0",
"@types/body-parser": "^1.19.5",
"@types/bull": "^3.15.9",
"@types/cookie-parser": "^1.4.7",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-pino-logger": "^4.0.5",
"@types/jest": "^29.5.12",
"@types/json-schema": "^7.0.15",
"@types/ms": "^0.7.34",
"@types/mustache": "^4.2.5",
"@types/node": "^20.11.26",
"@types/nodemailer": "^6.4.14",
"@types/pg": "^8.11.2",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-express": "^4.1.6",
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"commitizen": "^4.3.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.2",
"openapi-types": "^12.1.3",
"prettier": "^3.2.5",
"reflect-metadata": "^0.2.1",
"standard-version": "^9.5.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
"tsc-watch": "^6.0.4",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.3"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"lint-staged": {
"*.ts": "eslint --cache \"src/**/*.ts\""
},
"jest-junit": {
"outputDirectory": "reports",
"outputName": "jest-junit.xml",
"ancestorSeparator": " › ",
"uniqueOutputName": "false",
"suiteNameTemplate": "{filepath}",
"classNameTemplate": "{classname}",
"titleTemplate": "{title}"
}
}