-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathpackage.json
116 lines (116 loc) · 4.77 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
{
"name": "boilerplate_api",
"version": "1.1.2",
"description": "",
"main": "index.js",
"scripts": {
"start": "docker-compose up boilerplate_api",
"build": "tsc --skipLibCheck --outDir build/src",
"build-swc": "swc src --out-dir build/src --sync && tsc --skipLibCheck --noEmit",
"watch": "docker-compose up builder",
"docker-build": "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD | sed 's/[/]/-/g'); docker-compose build builder && docker tag app:local app:${BRANCH_NAME}",
"docker-build-prod": "docker build -t boilerplate-api:latest -f ./docker/prod/Dockerfile .",
"down": "docker-compose down -v",
"format": "docker-compose run --rm js ./node_modules/.bin/prettier --write \"**/**/*.ts\" \"!**/**/*.d.ts\"",
"lint": "docker-compose run --no-TTY --rm js ./node_modules/.bin/eslint --ext .ts ./",
"lint-fix": "docker-compose run --rm js ./node_modules/.bin/eslint --ext .ts --fix ./",
"integration-tests": "cd build && node ../node_modules/.bin/mocha \"src/tests/**/*.spec.js\" --file=\"src/tests/bootstrap.js\" --exit",
"services-units": "cd build && node ../node_modules/.bin/mocha \"src/{,!(tests)/**}/*.spec.js\"",
"services-units-coverage": "nyc --reporter=lcov --report-dir=../coverage/units npm run services-units",
"integration-tests-coverage": "nyc --reporter=lcov --report-dir=../coverage/integration npm run integration-tests",
"integration": "docker-compose run --rm js_test npm run integration-tests",
"units": "docker-compose run --no-TTY --rm js npm run services-units",
"shell": "docker-compose run --rm js sh",
"generate-migration": "docker-compose run --rm js ./node_modules/.bin/typeorm migration:generate ./src/migrations/migration -d ./build/src/config/db",
"run-migrations": "docker-compose run --rm js ./node_modules/.bin/typeorm migration:run -d ./build/src/config/db",
"revert-migration": "docker-compose run --rm js ./node_modules/.bin/typeorm migration:revert -d ./build/src/config/db",
"create-migration": "docker-compose run --rm js ./node_modules/.bin/typeorm migration:create ./src/migrations/migration",
"plop": "plop",
"generate-schema": "docker-compose run --rm js ./node_modules/.bin/graphql-codegen",
"prepare": "husky install"
},
"keywords": [],
"author": "",
"engines": {
"node": "20"
},
"dependencies": {
"@apollo/server": "^4.10.4",
"@tshio/awilix-resolver": "^2.0.1",
"@tshio/command-bus": "^1.0.4",
"@tshio/event-dispatcher": "^1.1.0",
"@tshio/logger": "^1.0.5",
"@tshio/query-bus": "^1.0.4",
"awilix": "^10.0.2",
"body-parser": "^1.20.2",
"celebrate": "^15.0.3",
"class-transformer": "^0.5.1",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-async-errors": "^3.1.1",
"graphql": "^16.8.1",
"helmet": "^7.1.0",
"http-status-codes": "^2.3.0",
"json-refs": "^3.0.15",
"jsonwebtoken": "^9.0.2",
"jwt-decode": "^4.0.0",
"pg": "^8.11.5",
"redis": "^4.6.14",
"source-map-support": "^0.5.21",
"swagger-ui-dist": "^5.17.12",
"swagger-ui-express": "^5.0.0",
"ts-pipe-compose": "^0.2.1",
"typeorm": "^0.3.20",
"typeorm-naming-strategies": "^4.1.0",
"uuid": "^9.0.1",
"winston": "^3.13.0",
"yamljs": "^0.3.0"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/node": "^20.12.12",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/typescript": "^4.0.7",
"@graphql-codegen/typescript-resolvers": "^4.1.0",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.7",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.8",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-serve-static-core": "^4.19.1",
"@types/jsonwebtoken": "^9.0.6",
"@types/mocha": "^10.0.6",
"@types/supertest": "^6.0.2",
"@types/swagger-ui-express": "^4.1.6",
"@types/uuid": "^9.0.8",
"@types/yamljs": "^0.2.34",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.2",
"chalk": "^5.3.0",
"chokidar": "^3.6.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tsh-custom": "file:./eslint",
"eslint-plugin-unicorn": "^53.0.0",
"husky": "^9.0.11",
"lodash.kebabcase": "^4.1.1",
"mocha": "^10.4.0",
"nock": "^13.5.4",
"nyc": "^15.1.0",
"plop": "^4.0.1",
"prettier": "^3.2.5",
"supertest": "^7.0.0",
"typescript": "^5.4.5"
}
}